#' Save plot
#'
#' @param plot plot to save
#' @param output_path path where to save the plot
#' @param name name of the plot
#' @param width width of plot
#' @param height height of plot
#'
#' @import ggplot2
#' @export
save_this_plot <- function(plot, output_path, name, width = 5, height=5){
ggsave(plot = plot,
filename = paste(output_path, "/", name, ".png", sep=""),
height = height,
width = width)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.