barplot <- function(df){
p <- df %>%
ggplot2::ggplot(ggplot2::aes(dates, value, fill = variable)) +
ggplot2::geom_bar(stat = 'identity', position = 'dodge') +
ggplot2::scale_fill_manual(values = pam.pal())
return(p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.