Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to adjust the x-axis of a horizontal bar chart?

    Hi everyone,

    I have troubles of adjusting my x-axis of my graph.
    I am trying to plot a graph which shows 28 observations from 0 to 0.6. However, there is only one observation at 0.6. All the other variables are bunched together at values smaller than 0.2, so I can not read them properly from the graph.
    My question is now, how I can leave all the observation in the graph (also the outlier), but eliminate the space between the observations.
    To give you a better impression what I mean, I uploaded a picture and the command of my graph.

    Command: graph hbar var1 var2, over(ccode) ysize(15) xsize(10)

    With kind regards,
    Timo Nothdurft
    Click image for larger version

Name:	Bildschirmfoto 2017-06-25 um 12.27.22.png
Views:	2
Size:	48.3 KB
ID:	1399340


  • #2
    Is there any feedback?

    Comment


    • #3
      There is advice in https://www.statalist.org/forums/help#adviceextras #1 on repeating posts (please don't) and on bumping (please be sparing).

      Here good advice depends on knowing much more about what is happening.

      1. Are the data really means, or just raw data? (asis) should be used for raw data.

      2. Whatever you are showing (asylum seekers? refugee settlers?), DE (Deutschland, Germany) is clearly very different. To show both it and the other values clearly would be tricky without a nonlinear scale. I'd use logarithmic scales and just omit the zeros myself. I would use a dot chart and not bars.

      3. Alphabetic order for countries is a poor choice for most purposes. Country codes are compact but you have space for longer names.

      If you posted the data you might get worked suggestions.

      Comment

      Working...
      X