This is a color palette R package that contains 128 palettes from Color Lisa.

Installation

Install the released version of lisa from CRAN:

Or install the development version from GitHub with:

If you aren’t an R user, you might be interested in palettes.yml which contains all palettes in YAML format.

Palettes

Here’s a sample of the available palettes:

library(lisa)

par(mfrow = c(6, 3))
lapply(sample(lisa, 18), plot)

You can also call and/or modify palettes using lisa_palette:

x <- lisa_palette("JackBush_1", 1000, "continuous")
y <- lisa_palette("PabloPicasso", 2, "discrete")
z <- lisa_palette("KatsushikaHokusai", 1000, "continuous")
lapply(list(x, y, z), plot)

All palettes have 3 attributes associated with them:

Example ggplot2 usage:

library(ggplot2)

ggplot(mtcars, aes(mpg, disp)) + 
  geom_point(aes(col = factor(gear)), size = 3) + 
  scale_color_manual(values = lisa$`Jean-MichelBasquiat`) + 
  theme_bw()

Acknowledgements

  • Color Lisa for the color palettes
  • wesanderson for source code that powers most things in this repository