View source: R/scale_color_pretty_c.R
scale_color_pretty_c | R Documentation |
Plotting with PrettyCols palettes for colour ggplot2
scale_color_pretty_c(palette, direction = 1, legend_title = NULL, ...)
palette |
Name of Palette. Run |
direction |
Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed |
legend_title |
|
... |
Other arguments passed on to |
A ggproto object defining a continuous colour scale for use with ggplot2.
library(ggplot2)
ggplot(data = mtcars, aes(x = mpg, y = disp, color = wt)) +
geom_point() +
scale_color_pretty_c("Greens")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.