I observe the total number of sales for 48 months over 4 years in 4 different countries. I declared a panel data set after assigning a time id to each month. My code is:
egen idtime=group(year month)
xtset idcountry idtime.
I want to do a basic scatterplot of sales over time. My code is
scatter sales idtime
However, on the x-axis I would like to see the exact month and year such as "2019 Jan" instead of artificially constructed idtime variable which goes as 1,2,...
How can I do this? Thank you very much.
egen idtime=group(year month)
xtset idcountry idtime.
I want to do a basic scatterplot of sales over time. My code is
scatter sales idtime
However, on the x-axis I would like to see the exact month and year such as "2019 Jan" instead of artificially constructed idtime variable which goes as 1,2,...
How can I do this? Thank you very much.
Comment