#' My custom ggplot2 theme.
#'
#' @keywords ggplot2
#' @export
#' @examples
#' ggplot(data=dat, aes(x=x, y=y))+geom_point()+theme_fournier()
theme_fournier <- function(){
theme(axis.text.x = element_text(size=12,color="black"),
axis.text.y = element_text(size=12,color="black"),
axis.title.y=element_text(size=20),
plot.background = element_blank(),
panel.border=element_blank(),
panel.grid.major= element_line(colour=NA),
panel.grid.minor=element_line(colour=NA),
title=element_text(size=20),
panel.background = element_rect(fill = "white"),
axis.line.x=element_line(colour="black"),
axis.line.y=element_line(colour="black"),
strip.background=element_rect(fill="white", color="black"),
strip.text=element_text(size=15))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.