# Capture plots without plotting
dont_plot <- function(x, f = graphics::plot, ...) {
tmp <- tempfile()
grDevices::png(tmp)
p <- f(x, ...)
grDevices::dev.off()
unlink(tmp)
invisible(p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.