Hi,
I have monthly time series data and would like to produce a line graph. I have tsset (monthly) the data.
However, I would only like the year to show along the x-axis, i.e 2010,2011,...,2016 as opposed to the year and month, i.e., 2010m1, 2011m1,...,2016m1.
I've managed to specify the labels I would like with the following code, but the output includes the monthly suffix:
tsline x, tlabel(2010m1 2011m1 2012m1 2013m1 2014m1 2015m1 2016m1)
PS: I would like to do this with code as opposed to the graph editor.
Thanks in advance!
I have monthly time series data and would like to produce a line graph. I have tsset (monthly) the data.
However, I would only like the year to show along the x-axis, i.e 2010,2011,...,2016 as opposed to the year and month, i.e., 2010m1, 2011m1,...,2016m1.
I've managed to specify the labels I would like with the following code, but the output includes the monthly suffix:
tsline x, tlabel(2010m1 2011m1 2012m1 2013m1 2014m1 2015m1 2016m1)
PS: I would like to do this with code as opposed to the graph editor.
Thanks in advance!
Comment