View source: R/scale_colour_discrete_scs.R
scale_colour_discrete_scs | R Documentation |
Discrete colour scales for SCS
scale_colour_discrete_scs(palette = "main", reverse = FALSE, ...)
palette |
Name of palette to use from 'scs_colour_palettes'; e.g. main, sequential, focus. |
reverse |
Boolean value to indicate whether the palette should be reversed |
... |
Additional arguments passed to scale type |
library(ggplot2) qplot(mpg, wt, data = mtcars, colour = as.factor(cyl)) + scale_colour_discrete_scs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.