Announcement

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

  • Graph bar with option percentage

    I am using the option
    graph hbar provi* if post==0 [fw=wt], percentage over(`var2', label(angle(45) labsize(`ysize'))) stack
    that gives the numbers in percentage, but it prints the word "percent" in the x-axis. How can I remove it?

  • #2
    As the help explains,

    graph hbar draws horizontal bar charts. In a horizontal bar chart, the numerical axis is still called the y axis, and the categorical axis is
    still called the x axis, but y is presented horizontally, and x vertically.

    I am guessing that what you are referring is the y axis title and if so adding a ytitle() option is the way to change it:

    Code:
    ytitle(whatever you prefer)

    Comment


    • #3
      Click image for larger version

Name:	todaswomen.png
Views:	1
Size:	5.2 KB
ID:	1704279

      No, it is about the x-axis. For some reason I get the word percent and I want to remove it

      Comment


      • #4
        As said, with graph hbar the horizontal axis is called the y axis. If this doesn't make sense, then we need please a reproducible example with data as we can't run the code in #1.

        Comment


        • #5
          Yes!!! tahnk you, it worked!!! with ytitle("") I have a clean graph. Thank you so much!

          Comment

          Working...
          X