Wes Anderson palettes for R

Wes Anderson palettes

A tumblr user set up a blog where he breaks down the colour palettes used in Wes Anderson movies. This by itself is ok, but then someone called Karthik Ram turned these palettes R palettes, and released it as a package called wesanderson on CRAN.

The package

First load the package, and get the available palettes. namelist tells us which movies have been added, and how many colours are in the palette.

library(wesanderson)
# Current list of available palettes
  namelist

The palettes

Code below loops through the list of palettes and plots them.

par(mfrow=c(3,3))
for (i in 1:nrow(namelist)){
  name_movie <- namelist[i,1]
  number_colours <- namelist[i,2]
  display.wes.palette(number_colours,
                      name_movie)
}
The palettes in the package.

Example of use

qplot(Sepal.Length,
      Petal.Length,
      data = iris,
      color = Species,
      size = Petal.Width)+
  theme_bw()+
  scale_color_manual(values = wes.palette(3, "GrandBudapest"))
Example plot using the package.
A post about: and

You May Also Enjoy