I periodically dump R plot hacks in this repository.
The repository has the following structure.
- plots---R code
- data---data sources used in scripts
- output---final output: .eps, .dvi, .ps, .tex.
You will need the following R packages
- ggplot2
- ggthemes
- reshape2
- scales
- fmsb
-
Run
preprocessor.sh
shell script to recompile project./preprocessor.sh
-
preprocessor.sh
does the following:- Compiles all Sweave files
- Runs
latex --shell-escape
to generate individual image files - Purges automatically generated files that are not required
- Renames files accordingly
- Fork it
- Send suggestions
- Sweave file: plot.sample.barplot.001.Rnw
- Data file : plot.sample.barplot.001.dat
- Output file: plot.sample.barplot.001.eps
- Sweave file: plot.sample.barplot.002.Rnw
- Data file : plot.sample.barplot.002.dat
- Output file: plot.sample.barplot.002.eps
- Sweave file: plot.sample.boxplot.001.Rnw
- Data file : plot.sample.boxplot.001.dat
- Output file: plot.sample.boxplot.001.eps
- Sweave file: plot.sample.kiviat.coord_polar.001.Rnw
- Data file : plot.sample.kiviat.coord_polar.001.dat
- Output file: plot.sample.kiviat.coord_polar.001.eps
- Sweave file: plot.sample.multiplots.gridExtra.001.Rnw
- Data file : plot.sample.multiplots.gridExtra.001.dat
- Output file: plot.sample.multiplots.gridExtra.001.eps
- Sweave file: plot.sample.facets.facet_grid.001.Rnw
- Data file : plot.sample.facets.facet_grid.001.dat
- Output file: plot.sample.facets.facet_grid.001.eps
- Sweave file: plot.sample.facets.facet_wrap.001.Rnw
- Data file : plot.sample.facets.facet_wrap.001.dat
- Output file: plot.sample.facets.facet_wrap.001.eps