knitr::opts_chunk$set(warning = FALSE, message = FALSE, echo = FALSE) library(dplyr) library(ggplot2) theme_manuscript = function(){ theme_gray(base_size = 10) %+replace% theme( # shared between slides and manuscript plot.title = element_text(size = rel(1)), axis.title = element_text(size = rel(1)), legend.title = element_text(size = rel(1)), legend.text = element_text(size = rel(1)), strip.text = element_text(size = rel(1)), strip.text.x = element_text(margin=margin(3, 0, 5, 0)), axis.text = element_text(size = rel(0.9)), legend.position = "bottom", strip.text.y = element_text(angle = 0, margin = margin(0, 2, 0, 2)) # manuscript specific ) } theme_set(theme_manuscript())
# load results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.