scale_colour_colorpile | R Documentation |
colorpile colour palettes for ggplot2
scale_colour_colorpile(name, ...) scale_color_colorpile(name, ...) scale_fill_colorpile(name, ...)
name |
Name of palette. |
... |
Arguments passed on to discrete_scale to control name, limits, breaks, labels and so forth. |
if (requireNamespace("ggplot2", quietly = TRUE)) { library(ggplot2) ggplot(mtcars, aes(x = mpg, y = hp, colour = factor(cyl))) + geom_point() + scale_colour_colorpile("Royal1") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.