scale_color_crayons | R Documentation |
ggplot2
Crayon Color Scales for ggplot2
scale_color_crayons(palette = "standard16", which = NULL, ..., reverse = FALSE)
scale_fill_crayons(palette = "standard16", which = NULL, ..., reverse = FALSE)
scale_colour_crayons(
palette = "standard16",
which = NULL,
...,
reverse = FALSE
)
palette |
palette from |
which |
numeric indices of colors to use. |
... |
arguments passed on to |
reverse |
Should the vector be reversed? Default is |
A ggplot2::Scale
library(ggplot2)
ggplot2::mpg |>
ggplot() +
geom_point(aes(displ, hwy, colour = class)) +
scale_color_crayons(palette = 'original')
ggplot2::mpg |>
ggplot() +
geom_point(aes(displ, hwy, fill = class), pch = 23, color = 'transparent') +
scale_fill_crayons(palette = 'original')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.