Announcement

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

  • Scaling the y axis of my two-way line graph

    Hello, I want to generate a two-way line graph, my y variable ranges from 0 - 25000, but I want the y axis to be labeled in (1000s) for example 25000 would be labeled as 25, how do I tell the twoway line command to do this? Thanks!

  • #2
    Code:
    line yvar xvar  yla(0 5000 "5" 10000 "10" 15000 "15" 20000 "20" 25000 "25")
    or

    Code:
    clonevar yvar2 = yvar / 1000
    line yvar2 xvar, ytitle(Something appropriate) yla(0(5)25)
    See also https://journals.sagepub.com/doi/pdf...6867X221141058 for the mylabels command.
    Last edited by Nick Cox; 21 Oct 2023, 01:48.

    Comment


    • #3
      Thanks!

      Comment

      Working...
      X