Hey Guys, i am trying to plot the trend in stata. For this purpose, i put years on x-axis 2004, 2006, 2008, 2010, 2012, 2014, and 2016. On y-axis there are two variables number of workers and GDP growth. So basically these two lines should be in the same graph with different colors. But when i plot the graph on x-axis it shows me 2005, 2010 and 2015. How can i put all the years which i have mentioned above? Apart from this i am unable to change the color of both lines, for instance, GDP Growth and number of workers come with the same color in the graph. Lastly, i wanted to plot another graph for hour wage and gdp and want to join these two graphs like for a number of workers/gdp and hour wage/gdp. What is the command for this? I am putting sample data and graph as well so you can have the idea.
Please see the attachment for one graph. i need to create another graph like this and need to join them just like a mirrior image.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int year float(officials gdp) 2004 5.09 7.4 2006 4.48 6.2 2008 2.67 1.7 2010 3.51 1.6 2012 3.95 3.5 2014 14.1 4.7 2016 8 5.7 end format %ty year
Comment