Discrete scales (scale_colour_sketch(), scale_fill_sketch()) use
sketch_palette(); the continuous variants (*_sketch_c()) use a
paper-to-ink blue gradient. They pair with theme_sketch() and the sketch
geoms but work with any ggplot2 layer.
Usage
scale_colour_sketch(..., aesthetics = "colour")
scale_color_sketch(..., aesthetics = "colour")
scale_fill_sketch(..., aesthetics = "fill")
scale_colour_sketch_c(..., aesthetics = "colour")
scale_color_sketch_c(..., aesthetics = "colour")
scale_fill_sketch_c(..., aesthetics = "fill")Arguments
- ...
Passed to
ggplot2::discrete_scale()(discrete) orggplot2::scale_colour_gradientn()(continuous).- aesthetics
Character vector of aesthetics this scale works with.
Examples
library(ggplot2)
ggplot(mpg, aes(displ, hwy, colour = drv)) +
geom_sketch_point(seed = 1L) +
scale_colour_sketch() +
theme_sketch()
