The goal of makeitprettier is to create a set of visual schemes to:
- generate visually consistent plots for the lab
- 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: