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