Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: two way graph, x-axis label

From   Nikolaos Pandis <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: two way graph, x-axis label
Date   Wed, 31 Aug 2011 06:37:19 -0700 (PDT)

 Hi to all.
I am trying to create a twoway line graph of var1 vs year.

I had copied & pasted the dataset from excel and the year was pasted as string.
I used:

encode year,gen(yearno)

and year is converted into a number from 1-17
I would like to : 

twoway (line var1 yearno)
but on the x-axis show the actual label of the year like 1995, 2000, 2001 etc, instead of values from 1-17.
Many thanks,

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index