Skip to content

A collection of R ggplot2 plots, code and data sources, based on academic and non-academic publications.

Notifications You must be signed in to change notification settings

lightonphiri/code-r-example-plots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

R ggplot2 Hack Collection

I periodically dump R plot hacks in this repository.

Repository

The repository has the following structure.

  • plots---R code
  • data---data sources used in scripts
  • output---final output: .eps, .dvi, .ps, .tex.

Requirements

You will need the following R packages

  • ggplot2
  • ggthemes
  • reshape2
  • scales
  • fmsb

Usage

  • 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

Contributing

  1. Fork it
  2. Send suggestions

Plots Catalogue

Barplots

plot.sample.barplot.001.Rnw

plot.sample.barplot.002.Rnw

Boxplots

plot.sample.boxplot.001.Rnw

Kiviat Plots

plot.sample.kiviat.coord_polar.001.Rnw

Multiple Plot on One Graph

plot.sample.multiplots.gridExtra.001.Rnw

Faceting

plot.sample.facets.facet_grid.001.Rnw

plot.sample.facets.facet_wrap.001.Rnw

About

A collection of R ggplot2 plots, code and data sources, based on academic and non-academic publications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published