Hi Stata community;
Here's the data I have:
For some reason, when importing the data from an excen format to a Stata one, I get the first row treated as data, or I do want it to be treated like a variable row (even more so, that option doesn't show so I could choose how to treat the forst row)
I do wanna draw a tsset year graph that shows the evolution of the oil production for the 24 regions (each region line presented by a color) through the years. I know 24 lines on a same graph seem too much and that the grph could be crowded, but I kinda need that for comparative analysis, I might just keep the 6 or 8 most interesting regions on the graph after all.
Any Help Please? Thank You!
Here's the data I have:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str10 var1 long(var2 var3 var4 var5 var6 var7 var8 var9 var10 var11 var12 var13 var14 var15 var16) "" 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 "ariana" 28480510 25609453 30063331 26950413 30268434 31133456 35098861 34316590 36639892 35744822 34699696 35334365 32383595 26411406 22023369 "manouba" 20360283 19616901 19535610 18858296 17885194 16544553 16056025 14073380 14539672 13027754 10661456 10560877 13046636 8405661 8867913 "ben-arous" 5732611 7696598 9346580 9201327 9236748 8511390 9168940 9660066 10323892 10885281 8991364 10966136 12558769 14127478 14551871 "nabeul" 17253710 17592875 24953470 25737814 26765652 24794239 27497245 30367234 31980683 32235462 28922146 38491612 46919541 38196495 42431376 "zaghouan" 1351334 3915348 1235170 916610 620465 639156 943978 1132415 1040821 783377 786217 678951 1162415 1971768 2094948 "bizerte" 67973187 70778401 78922979 80061076 85326287 88733331 82671544 103728124 118324680 133038097 138644845 140114541 138434175 128745941 133868795 "beja" 55895758 53664787 60099943 61778051 64564446 66848312 72921642 74210557 58826864 61088535 64688041 72687060 78113758 70744009 64684891 "jandouba" 53509218 57922966 62560152 61359859 67777174 74459334 83992077 95257570 100370494 111734763 111082839 118220312 116549315 119292552 114510237 "lekef" 6021926 5658817 5390225 5630049 6338341 7821260 9012978 14033767 11083908 10237561 8288184 3073104 244302 0 1939884 "siliana" 1169557 2324372 2056305 3946378 8750788 11015950 1303789 4301856 4330573 3274987 10832423 16166825 18674022 20612777 19800954 "kairouan" 6890758 8006319 10383672 12274951 11780080 11554816 13072564 15283044 18497132 24231472 23719419 23351471 28403229 29091910 26679429 "sousse" 11933042 11884597 11475967 11051745 10248746 10201650 11821218 12688422 12393424 13286310 12498203 14077215 17038172 18917351 13568014 "monastir" 38148512 34164132 35142456 38054845 40740750 41743253 43192395 44637344 45595355 43235250 36848966 30918928 29322912 32224088 29911564 "mahdia" 99256314 88794373 83106240 87288122 91303534 96345650 106795740 115484615 124214955 121716048 115166490 113325652 119392118 126106622 120070724 "sfax" 77161422 71672798 70542110 67143725 63916115 65196477 63417980 64570510 63306256 61518651 51266106 51236810 57180662 54715870 45231343 "sidibouzid" 68549730 76742415 95064067 99191341 109993089 117109947 127058910 134360630 132989973 129907597 115041368 107231095 104698490 98243311 84980878 "gafsa" 14492111 17236490 22924866 24518046 30631403 39890206 43484237 44058954 44599504 51255503 45785720 40727768 39100814 37880401 34641139 "kasserine" 6913099 9745044 8386420 10925714 14883198 17615400 18667492 19367890 23222346 22572904 18219246 16746512 17702617 20223982 19555906 "tozeur" 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "gabes" 18340501 19028184 18642876 19440084 18231796 17538634 16736405 16319867 12960491 12197624 9298911 8394073 9609698 9880168 8069875 "medenine" 109887 175056 102472 0 0 0 0 0 0 0 0 0 0 0 0 "kebilli" 315963 321005 361935 86635 0 0 0 0 0 0 0 0 0 0 0 end
I do wanna draw a tsset year graph that shows the evolution of the oil production for the 24 regions (each region line presented by a color) through the years. I know 24 lines on a same graph seem too much and that the grph could be crowded, but I kinda need that for comparative analysis, I might just keep the 6 or 8 most interesting regions on the graph after all.
Any Help Please? Thank You!
Comment