scale_wjake: wjake color scale

View source: R/wjake-color-scales.R

scale_colour_wjakeR Documentation

wjake color scale

Description

This is a qualitative scale using the color palette used for https://wjakethompson.com. See palette_wjake for details.

Arguments

...

common discrete scale parameters: name, breaks, labels, na.value, limits, guide, and aesthetics. See discrete_scale for more details.

order

Numeric vector listing the order in which the colors should be used. Default is 1:5.

darken

Relative amount by which the scale should be darkened (for positive values) or lightened (for negative values).

alpha

Alpha transparency level of the color. Default is no transparency.

Examples

library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
  geom_point() + scale_color_wjake()
ggplot(iris, aes(Sepal.Length, fill = Species)) +
  geom_density(alpha = 0.7) + scale_fill_wjake(order = c(1, 3, 5))

wjakethompson/wjake documentation built on June 29, 2024, 7:47 a.m.