#' ggplot2 theme for hake
#'
#' @export
hake_theme <- function(){
theme_bw() +
theme(legend.box.background = element_rect(fill = alpha("white", 0.7)),
legend.box.margin = margin(1, 1, 1, 1, "mm"),
legend.key = element_blank(),
legend.margin = margin(),
legend.text.align = 1,
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
#panel.grid.major = element_line(colour = "darkgrey", size = 0.2),
#panel.grid.minor = element_line(colour = "darkgrey", size = 0.1),
legend.background = element_rect(fill = "transparent"),
#panel.spacing.x=unit(3, "lines"),
plot.margin = unit(c(0.1, 0.6, 0.1, 0.1), "lines"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.