#pow <- function(x, a=2) x^a
pow <- function(x, a, plot_it) {
res <- x^a
if (plot_it) print(ggplot2::qplot(x, res))
return(res)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.