biogeochemthemes
: Biogeochem Lab Themes for ggplot2
library(devtools) devtools::install_github("biogeochem/biogeochemthemes")
``` {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()
``` {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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.