Skip to content
This repository
Browse code

added dofile to generate example stata graphs

  • Loading branch information...
commit da2fc13c40c00232cf6b2016e33a6b955bb35674 1 parent 283a393
Jeffrey Arnold authored September 22, 2012
3  .Rbuildignore
@@ -2,4 +2,5 @@
2 2
 roxygen
3 3
 README.*
4 4
 figure
5  
-.Rhistory
  5
+.Rhistory
  6
+stata
3  .gitignore
... ...
@@ -1 +1,2 @@
1  
-/figure
  1
+/figure
  2
+stata/*.png
13  stata/examples.do
... ...
@@ -0,0 +1,13 @@
  1
+sysuse auto
  2
+local schemelist s2color s2mono s2manual s2gmanual s1rcolor s1mono s1manual economist sj
  3
+
  4
+foreach scheme of local schemelist {
  5
+    scatter mpg headroom turn weight, ///
  6
+        title("Plot title") legend(title("Legend title")) scheme(`scheme')
  7
+    graph export "graph_twoway_scatter_`scheme'.png"
  8
+
  9
+    scatter mpg headroom turn weight, ///
  10
+        by(foreign, title("Plot title")) ///
  11
+        legend(title("Legend title")) scheme(`scheme')
  12
+    graph export "graph_twoway_scatter_by_`scheme'.png"
  13
+}

0 notes on commit da2fc13

Please sign in to comment.
Something went wrong with that request. Please try again.