#' rClearPlots
#'
#' This function lets you clear plots in R.
#' @param activate Do you want R to run better? Defaults to TRUE.
#' @keywords reset
#' @export
#' @examples
#' clear.plots()
clear.plots <- function() {
# Clear Plots
if(!is.null(dev.list())) dev.off()
# graphics.off()
print("Plots Cleared")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.