scale_color_crayons {crayons} | R Documentation |
Crayon Color Scales for ggplot2
Description
Crayon Color Scales for ggplot2
Usage
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
)
Arguments
palette |
palette from |
which |
numeric indices of colors to use. |
... |
arguments passed on to |
reverse |
Should the vector be reversed? Default is |
Value
Examples
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')
[Package crayons version 0.0.3 Index]