Permalink
Browse files

added dofile to generate example stata graphs

  • Loading branch information...
1 parent 283a393 commit da2fc13c40c00232cf6b2016e33a6b955bb35674 @jrnold committed Sep 22, 2012
Showing with 17 additions and 2 deletions.
  1. +2 −1 .Rbuildignore
  2. +2 −1 .gitignore
  3. +13 −0 stata/examples.do
View
@@ -2,4 +2,5 @@
roxygen
README.*
figure
-.Rhistory
+.Rhistory
+stata
View
@@ -1 +1,2 @@
-/figure
+/figure
+stata/*.png
View
@@ -0,0 +1,13 @@
+sysuse auto
+local schemelist s2color s2mono s2manual s2gmanual s1rcolor s1mono s1manual economist sj
+
+foreach scheme of local schemelist {
+ scatter mpg headroom turn weight, ///
+ title("Plot title") legend(title("Legend title")) scheme(`scheme')
+ graph export "graph_twoway_scatter_`scheme'.png"
+
+ scatter mpg headroom turn weight, ///
+ by(foreign, title("Plot title")) ///
+ legend(title("Legend title")) scheme(`scheme')
+ graph export "graph_twoway_scatter_by_`scheme'.png"
+}

0 comments on commit da2fc13

Please sign in to comment.