paletteer_d: Get discrete palette by package and name

Description Usage Arguments Value Examples

Description

Available package/palette combinations are available in the data.frame palettes_d_names. Both package and palette can be supplied as symbols or strings.

Usage

1
2
paletteer_d(package, palette, n, direction = 1, type = c("discrete",
  "continuous"))

Arguments

package

Name of package from which the palette is desired as string or symbol.

palette

Name of palette as string or symbol.

n

Number of colors desired. If omitted, returns complete palette.

direction

Either 1 or -1. If -1 the palette will be reversed.

type

Either "discrete" or "continuous". Colors are interpolated if "continuous" is picked. Defaults to "discrete".

Value

A vector of colors.

Examples

1
2
3
paletteer_d("nord", "frost")
paletteer_d("wesanderson", "Royal1", 3)
paletteer_d("Redmonder", "dPBIPuOr", 14, type = "continuous")

paletteer documentation built on May 2, 2019, 8 a.m.