SW_palette: A Space Movie palette generator ....

Description Usage Arguments Value Examples

Description

These are a handful of color palettes from the Space Movie franchise.

Usage

1
SW_palette(name, n, type = c("discrete", "continuous"))

Arguments

name

Name of desired palette. Choices are: ANH, TESB, ROTJ, TPM, AOTC, ROTS, TFA Boba, Kanan, Hera, Zeb, Sabine, Chopper, Ezra, Inquisitor, Kallus , AT_DP , Tank_Transport_pilot, Main,

n

Number of colors desired. If omitted, uses all colors.

type

Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colors.

Value

A vector of colors.

Examples

1
2
3
4
5
6
7
SW_palette("Hera")
SW_palette("Sabine", 3)

"If you need more colors than normally found in a palette, you can use a continuous palette to interpolate between existing colors."

pal <- SW_palette(name = "Boba", n = 21, type = "continuous")
image(volcano, col = pal)

butterflyology/spaceMovie documentation built on May 13, 2019, 9:04 a.m.