Permalink
Browse files

Let Make generate distribution plots.

  • Loading branch information...
1 parent f91eae4 commit b3eea23c1327b9d608c3f1a670e7c736d5712041 @mavam committed Jun 26, 2012
View
@@ -8,6 +8,8 @@
*.out
*.sw?
*.toc
+figs/*
+!figs/relationships.pdf
cookbook.pdf
cookbook-??.*
config.tex
View
@@ -12,7 +12,12 @@ RERUNBIB := "No file.*\.bbl|Citation.*undefined"
TEXINPUTS := $(TEXINPUTS):translations:
-all: en
+.PHONY: all figs en es english spanish purge clean dist
+
+all: figs en
+
+figs:
+ $(MAKE) -C $@
en: $(DOC)
@echo '\uselanguage{english}' > $(CFG)
@@ -38,6 +43,7 @@ purge:
-rm -f $(DIST) *.{aux,dvi,log,bbl,blg,brf,toc,thm,out,fdb_latexmk}
clean: purge
+ $(MAKE) -C figs $@
-rm -f $(CFG) $(EN) $(EN:.tex=.pdf)
dist: clean
View
@@ -0,0 +1,24 @@
+PLOTS := beta \
+ binomial \
+ chisquare \
+ exponential \
+ f \
+ gamma \
+ geometric \
+ invgamma \
+ lognormal \
+ normal \
+ pareto \
+ poisson \
+ student \
+ uniform-continuous \
+ uniform-discrete \
+ weibull
+
+.PHONY: all clean
+
+all:
+ R --vanilla < distributions.R
+
+clean:
+ -rm -f $(PLOTS:=.pdf)
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
@@ -302,7 +302,7 @@ plot.pareto = function()
# Requires: f outputs a ggplot2.
store = function(f, name)
{
- pdf(paste(paste("figs", name, sep="/"), "pdf", sep="."))
+ pdf(paste(name, "pdf", sep="."))
print(f())
dev.off()
}
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.

0 comments on commit b3eea23

Please sign in to comment.