Hello Stata Community;
I hope I could get some help with this, because I don't know where the problem with my data is.
I do have this data:
The first variable is "Yearly Campagne", and the other variable are crop types production. I already inserted the "tsset" command in the first variable since I wanna treat it as a Yearly time variable.
My goal is to draw a time-line graph showing the Yearly campagne as an x variable (with all the campagnes written on the axis) and as the y variable the 4 crop production, all in one graph with different line color for each crop production.
I really would appreciate it if I could get some help.
Thanks.
I hope I could get some help with this, because I don't know where the problem with my data is.
I do have this data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str9 AgriculturalCampagne long(foin ensilage fourrage_vert_automne fourrage_vert_ete) "2005-2006" 645000 465000 1700000 715000 "2006-2007" 832000 558000 2370000 612000 "2007-2008" 643590 483180 1874100 1071540 "2008-2009" 887000 523000 2141000 914000 "2009-2010" 596200 424100 1618000 1063249 "2010-2011" 596139 424063 2678569 893305 "2011-2012" 824912 492456 2128453 719441 "2012-2013" 655284 487731 2374385 580000 "2013-2014" 949374 572800 2817101 811000 "2014-2015" 821000 523000 1700000 639102 "2015-2016" 680000 466000 1900000 871000 "2016-2017" 836225 517633 2370245 439000 "2017-2018" 650000 485000 1700000 421000 "2018-2019" 990887 490558 1969825 367000 "2019-2020" 717000 345000 1500000 394000 "2020-2021" 790000 380000 19000000 368300 "2021-2022" 765000 407000 19000000 461000 "" . . . . end
My goal is to draw a time-line graph showing the Yearly campagne as an x variable (with all the campagnes written on the axis) and as the y variable the 4 crop production, all in one graph with different line color for each crop production.
I really would appreciate it if I could get some help.
Thanks.
Comment