#' This function suppresses ggplot2 messages on print.
#'
#' @export
#' @title Suppress ggplot2 messages
#' @param gg a ggplot2 object
print.gg_silent <- function(gg) {
suppressMessages(ggplot2:::print.ggplot(gg))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.