library(ggplot2)
Barplot <- function(data, x.var){
x.var <- rlang::sym(quo_name(enquo(x.var)))
ggp <- ggplot(data = dat,
aes(x = !! x.var)) +
geom_bar()
return(ggp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.