Works the same as scale_fill_discrete for ggplot plots.
1 |
1 2 3 4 5 | library(tidyverse)
mtcars %>%
ggplot(aes(x = am, y = ..count.., fill = factor(cyl))) +
geom_bar() +
scale_fill_discrete_iteam()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.