The goal of makeitprettier is to create a set of visual schemes to: 1. generate visually consistent plots for the lab 2. make it easier for lab members to tweak plots for presentations, reports and publication.
The easiest way is using devtools
to install straight from github:
# install.packages("devtools")
devtools::install_github("adomingues/makeitprettier")
See the vignette for full examples by running:
browseVignettes("makeitprettier")
Very quickly, to add a theme to your plot:
library(makeitprettier)
p1 <- ggplot(readcounts, aes(x = readlength, y = N, color = Mapping)) +
geom_line() +
facet_grid(IP ~ Replicate)
p1
p1 + theme_poster()
And change the colors with:
p1 +
theme_poster() +
scale_colour_ketting()
I took inspiration and or used the code from:
ggthemes ggplot_theme_Publication
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.