Hello all, I am fairly new to stata. I have this graph and I am desperately trying to get the x-axis to stop at 2016 (the last year of observations). I tried many different things. The code for the graph I'm currently using is:
graph twoway line var1 year, lc(black) lpattern(dash) legend(label(1 "X")) || line var2 year, lc(red) lpattern(dash) legend(label(2 "Y")) title("title") note("description") ylabel(,angle(horizontal)) xscale(range(1980 2016))
Event though I use the xscale command, it doesnt do anything. I tried many different things, using the xtick command, changing the graph to a line and a xtline.. But I always get the same graph.
Help would be much appreciated.
Best
L

graph twoway line var1 year, lc(black) lpattern(dash) legend(label(1 "X")) || line var2 year, lc(red) lpattern(dash) legend(label(2 "Y")) title("title") note("description") ylabel(,angle(horizontal)) xscale(range(1980 2016))
Event though I use the xscale command, it doesnt do anything. I tried many different things, using the xtick command, changing the graph to a line and a xtline.. But I always get the same graph.
Help would be much appreciated.
Best
L

Comment