wom_palettes: WoM Colour Palettes

wom_palettesR Documentation

WoM Colour Palettes

Description

A collection of colour palettes

Usage

wom_palettes

Format

An object of class list of length 7.

Examples


# Make an x-y plot using the wom palette
library(ggplot2)
df <- data.frame(x = rnorm(100, 0, 20),
          y = rnorm(100, 0, 20),
          cl = sample(letters[1:8], 100, replace=TRUE))

ggplot(df, aes(x, y, colour = cl, shape = cl)) +
  geom_point(size = 4) +
  scale_colour_wom() +
  theme_minimal() +
  theme(aspect.ratio = 1)

ggplot(df, aes(x, fill = cl)) +
  geom_histogram() +
  scale_fill_wom(palette = "mixed")


emilelatour/laviz documentation built on Oct. 15, 2023, 1:41 p.m.