barPlot <- function(data) {
ggplot(data, aes(y = cut)) +
geom_bar(aes(fill = color), position = position_stack(reverse = TRUE)) +
theme(legend.position = "top")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.