pnw_palette: PNW Palette Generator.

Description Usage Arguments Value Examples

View source: R/PNWColors.R

Description

This function builds palettes based on natural scenes in the Pacific Northwest. Each palette is inspired by the author's nature photography of the region, and checked for color blind safety using Chroma.js Color Palette Helper. View photos for each palette On Github.

Usage

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

Arguments

name

Name of the color palette. Options are Starfish, Shuksan, Bay, Winter, Lake, Sunset, Shuksan2, Cascades, Sailboat, Moth, Spring, Mushroom, Sunset2, Anemone

n

Number of colors in the palette. Palletes include 5-8 colors, which can be used discretely, or if more are desired, used as a gradient. If omitted, n = length of palette.

type

Usage of palette as "continuous" or "discrete". Continuous usage interpolates between colors to create a scale of values. If omitted, function assumes continuous if n > length of palette, and discrete if n < length of palette.

Value

A vector of colors.

Examples

1
2
3
pnw_palette("Winter",n=100,type="continuous")
pnw_palette("Bay",3)
pnw_palette("Starfish",50)

jakelawlor/PNWColors documentation built on Sept. 30, 2020, 3:14 a.m.