Learn R Programming

paletteer (version 0.1.0)

paletteer_c: Get continuous palette by package and name

Description

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

Usage

paletteer_c(package, palette, n, direction = 1)

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.

Value

A vector of colors.

Examples

Run this code
# NOT RUN {
paletteer_c(scico, berlin, 100)
# }

Run the code above in your browser using DataLab