R: A Wes Anderson palette generator

wes_palette {wesanderson} | R Documentation

## A Wes Anderson palette generator

### Description

These are a handful of color palettes from Wes Anderson movies.

### Usage

    wes_palette(name, n, type = c("discrete", "continuous"))

### Arguments

`name` | Name of desired palette. Choices are: `GrandBudapest`, `Moonrise1`, `Royal1`, `Moonrise2`, `Cavalcanti`, `Royal2`, `GrandBudapest2`, `Moonrise3`, `Chevalier` , `BottleRocket` , `darjeeling`, `darjeeling2`
`n` | Number of colors desired. Unfortunately most palettes now only have 4 or 5 colors. But hopefully we'll add more palettes soon. All color schemes are derived from the most excellent Tumblr blog: Wes Anderson Palettes. If omitted, uses all colours.
`type` | Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours.

### Value

A vector of colours.

### Examples

    wes_palette("Royal1")
    wes_palette("GrandBudapest")
    wes_palette("Cavalcanti")
    wes_palette("Cavalcanti", 3)

    # If you need more colours than normally found in a palette, you
    # can use a continuous palette to interpolate between existing
    # colours
    pal <- wes_palette(21, name = "Zissou", type = "continuous")
    image(volcano, col = pal)

[Package wesanderson version 0.3.2 Index]