nice to meet you again.
I would like to ask you a question about "shape and trend lines". I have in particular two bar plots. What I would like to do is to add a line to them which follow their shapes and then made the "average" trend line between the two. So the average line between the one of the first bar plot and the trend line of the second one.
My data (example data) are as follows for the first bar plot:
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int(Year ClassII) 2004 68 2005 140 2006 243 2007 189 2008 176 2009 1660 2010 389 2011 1279 2012 499 2013 1283 2014 1344 2015 1584 end
Listed 12 out of 12 observations
And these for the second:
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int(Year ClassII) 2004 68 2005 140 2006 243 2007 189 2008 176 2009 1660 2010 389 2011 1279 2012 1518 2013 848 2014 893 2015 1584 end
Listed 12 out of 12 observations
The code adopted for the bar plots is the following:
Code:
label var ClassII "Class 2" graph bar (asis) ClassII , over(Year) ylabel(0(100)2000, angle(0) grid)
Thank you very much,
Federico
0 Response to Trend lines
Post a Comment