Announcement

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

  • Dot graph does not re-scale y axis

    I'm using this code to "cut" the Y-axis range of a dot graph. But it does not work, and I can not figure out why. I'll appreciate any advice. - Thanks.
    Code:
    sysuse auto, clear
    graph dot (median) mpg (mean) mpg, ///
        xalternate over(foreign, label(labsize(medsmall))) ///
        ytitle(Average MPG) ysc(r(15(5)30)) yla(15(5)30) ///
        linetype(line) lines(lcolor(teal) lwidth(thin) lpattern(dash)) ///
        legend(label(1 Median) label(2 Mean))

  • #2
    You need an extra option

    exclude0 do not force y axis to include 0

    Comment


    • #3
      Thank you, Nick. exclude0 is a useful alternative. At least, one that I like. However, the final users do not like it. -

      Comment

      Working...
      X