Announcement

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

  • scatter plot: modify y-axis range

    Hi Stalists,

    I am trying to output a graph, wherein the y-axis ranged from 0-1, without the horizontal blue lines.

    I used codes:
    Code:
    scatter percentage day, connect(1 1 1)  ytitle("percentage") xtitle("days") yscale(r(0(0.1) 1))
    and I got output below, but the values after 0.4 in the y-axis did not show up and I wanted to get rid of the horizontal blue lines.

    Any suggestion is welcome and thanks in advance!

    Y



    Attached Files

  • #2
    Try
    Code:
    ... ylabel(0(.1)1, nogrid)

    Comment


    • #3
      Thanks Scott, your code worked perfectly!

      Comment


      • #4
        If your meaure is bounded by 0 and 1 it's a probability, proportion or fraction -- but not a percentage.

        Comment

        Working...
        X