Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73370

How to create Bar Graphs with these variables

$
0
0
Hi Statalisters,

I am trying to create a graph like the one in the image attached. I am new with stata and I still cannot figure out how to do it.

In the image attached, the blue bar stands for exportation and the red one is for importation. Which command do i use to reproduce this example?

Below is my data.



----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str4 var1 str11(var2 var3)
"YEAR" "Imports"     "Exports"    
"2002" "3760000000"  "7515840000" 
"2003" "5480000000"  "9237400000" 
"2004" "5832000000"  "12974500000"
"2005" "8353000000"  "23669500000"
"2006" "11600000000" "31083600000"
"2007" "9617110000"  "43451700000"
"2008" "14544200000" "72178500000"
"2009" "22547600000" "40080300000"
"2010" "16573500000" "46437100000"
"2011" "17329800000" "65800700000"
"2012" "22340300000" "70087900000"
"2013" "22670000000" "67143500000"
end
------------------ copy up to and including the previous line ------------------
Thank you.

Viewing all articles
Browse latest Browse all 73370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>