#' Graph Style
#' This function sets the graphics to 'cairo-png' for better graphing in the IDE. It also sets
#' the ggplot2 theme to 'theme_light()'.
#' @return
#' @export
#'
cairo_view <- function() {
trace(grDevices::png, quote({
if (missing(type) && missing(antialias)) {
type <- "cairo-png"
antialias <- "subpixel"
}
}), print = FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.