Announcement

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

  • Need help limiting the x-axis scale in a graph

    I'm trying to make a simple graph displaying university enrollment ("unienr") across time. The code i'm trying is:

    graph twoway line unienr year, xsc(r(1950 2018))

    The graph comes up fine but the x-axis ranges from 1900 to 2050, even though the dataset doesn't contain data past 2020.

    Any help is appreciated. Thanks in advance!

  • #2
    Spell out that you want different axis labels by adding an extra option

    Code:
    xla(1950(10)2020)

    Comment

    Working...
    X