#' Tufte theme
#'
#' Similar to the default theme, but with [Tufte](https://www.edwardtufte.com/tufte/)-esque defaults.
#'
#' @param base_size base font size
#' @param grid show grid lines
#' @param serif use serif font
#'
#' @return [`ggplot2::theme`] object
#' @export
theme_wt <- function(base_size = 10, grid = FALSE, serif = TRUE) {
th <- theme_wc()
th$plot.background$fill <- bgtufte
th
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.