biogeochemthemes : Biogeochem Lab Themes for ggplot2

Installation

library(devtools)
devtools::install_github("biogeochem/biogeochemthemes")

Usage

``` {r, echo=TRUE, results='hide'} library(biogeochemthemes) library(ggplot2)

## Jason's theme

``` {r, jason-example}
ggplot(mtcars, aes(y=mpg, x=disp, colour=factor(cyl))) +
  geom_point() +
  labs(x="Fuel effiiency (mpg)", y="Weight (tons)", colour = "Cylinders",
       title="Jason's ggplot2 scatterplot example",
       subtitle="A witty subtitle goes here",
       caption="Brought to you by the phrase 'Who knows?!'") + 
  theme_jason()

Kateri's theme

``` {r, kateri-example} ggplot(mtcars, aes(y=mpg, x=disp, colour=factor(cyl))) + geom_point() + labs(x="Fuel effiiency (mpg)", y="Weight (tons)", color = "Cylinders", title="Kateri's ggplot2 scatterplot example", subtitle="A witty subtitle goes here", caption="Brought to you by the letters 'MSU'") + theme_kateri()

## Megan's theme

``` {r, megan-example}
ggplot(mtcars, aes(y=mpg, x=disp, colour=factor(cyl))) +
  geom_point() +
  labs(x="Fuel effiiency (mpg)", y="Weight (tons)", color = "Cylinders",
       title="Megan's ggplot2 scatterplot example",
       subtitle="A witty subtitle goes here",
       caption="Brought to you by extra coffee") + 
  theme_megan()


biogeochem/biogeochemthemes documentation built on May 1, 2020, 5:16 a.m.