scale_picker | R Documentation |
Builds a color scale for ggplot2 or ggraph.
scale_colour_picker(..., palette = "YlOrBr")
scale_color_picker(..., palette = "YlOrBr")
scale_fill_picker(..., palette = "YlOrBr")
scale_edge_colour_picker(..., palette = "YlOrBr")
scale_edge_color_picker(..., palette = "YlOrBr")
scale_edge_fill_picker(..., palette = "YlOrBr")
... |
Extra parameters to be passed to the color scale function. |
palette |
A |
A discrete or continuous scale.
N. Frerebeau
library(ggplot2)
ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) +
ggplot2::geom_point() +
scale_colour_picker(palette = "okabeito")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.