| scale_fill_besthr | R Documentation |
A discrete fill scale using besthr palettes.
scale_fill_besthr(palette = "default", ...)
palette |
Character string specifying the palette (see |
... |
Additional arguments passed to |
A ggplot2 discrete fill scale
library(ggplot2)
ggplot(mtcars, aes(factor(cyl), fill = factor(cyl))) +
geom_bar() +
scale_fill_besthr("okabe_ito")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.