Announcement

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

  • X-axis label size

    I am a new Stata user and am trying to create a horizontal bar graph (tornado diagram) using twoway rbar. I want to change the size of my x and y-axis labels; however, when I use labsize(small)in the xlabel code (see below in bold), it states that this option is not available. Can anyone provide guidance on what I am doing wrong? I cannot seem to find a proper replacement when I search online. Thank you!

    twoway (rbar high low y1, horizontal barwidth(0.25) blwidth(medthick) blcolor(black)) (scatter y2 mean, msize(zero) mcolor(none) mlabel(name) mlabpos(12) mlabsize(vsmall)), xlabel(1000(1000)5000, format(%13.0fc) labsize(small)) xline(2440, lwidth(thin) lpattern(dash) lcolor(gs8)) ///
    scheme(s2Mono) legend(off) xtitle("ICER",size(small))

  • #2
    Welcome to the Stata Forum/ Statalist.

    You may wish to add a comma before labsize.
    Best regards,

    Marcos

    Comment


    • #3
      I find the parentheses notation for commands hard to read. Try this instead

      Code:
      twoway rbar high low y1, horizontal barwidth(0.25) blwidth(medthick) blcolor(black)) ///
      || scatter y2 mean, msize(zero) mcolor(none) mlabel(name) mlabpos(12) ///
      mlabsize(vsmall) xlabel(1000(1000)5000, format(%13.0fc) labsize(small)) ///
      xline(2440, lwidth(thin) lpattern(dash) lcolor(gs8)) ///
      scheme(s2Mono) legend(off) xtitle("ICER",size(small))

      Comment


      • #4
        That seemed to have solved the problem. Thank you all!

        Comment

        Working...
        X