Announcement

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

  • X-axis of histogram

    Hi Everyone,

    I am trying to make a histogram of education variable which is categorical. I used the code below. When I do that, the x axis labels do not show up. I tried different versions and played with graph editor but could not solve it. Could you please help?



    histogram education, discrete frequency xtitle("") xlabel(2(2)16, labsize(vsmall) angle(60) valuelabel) graphregion(color(white) )

    Click image for larger version

Name:	Graph.jpg
Views:	1
Size:	144.2 KB
ID:	1715989



    Last edited by Yaseminn Akcann; 03 Jun 2023, 12:59.

  • #2
    Data example?

    Comment


    • #3
      I suspect that the problem is that one or more value labels is absurdly long (else why you are asking for angle(60)?)

      Better solutions here might be one or more of

      * a horizontal bar chart

      * putting value labels on two or more levels

      * shortening the value labels

      Comment

      Working...
      X