Hi everyone
While running the code to plot a twoway graph, I am getting the following r(100) error- ) required.
I understand this could be something to do with incomplete parenthesis but I not quite able to figure out the exact error.
The following is the code I'm trying to use:
twoway (connected avg_treatment Year, legend(label(1 "avg_treatment") size(small) cols(3)))(connected avg_control Year, legend(label(2 "avg_control"))), xtitle("Year") ytitle("CO2emissions") xlabel(2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019) graphregion(margin(vlarge) color(gs16)), xline(2016.5, lpattern(dash))
I would be super grateful to have this solved.
Thank you very much in anticipation.
While running the code to plot a twoway graph, I am getting the following r(100) error- ) required.
I understand this could be something to do with incomplete parenthesis but I not quite able to figure out the exact error.
The following is the code I'm trying to use:
twoway (connected avg_treatment Year, legend(label(1 "avg_treatment") size(small) cols(3)))(connected avg_control Year, legend(label(2 "avg_control"))), xtitle("Year") ytitle("CO2emissions") xlabel(2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019) graphregion(margin(vlarge) color(gs16)), xline(2016.5, lpattern(dash))
I would be super grateful to have this solved.
Thank you very much in anticipation.
Comment