Learn R Programming

paletteer (version 1.6.0)

paletteer_c: Get continuous palette by package and name

Description

Available package/palette combinations are available in the data.frame palettes_c_names.

Usage

paletteer_c(palette, n, direction = 1)

Value

A vector of colors.

Arguments

palette

Name of palette as a string. Must be on the form packagename::palettename.

n

Number of colors desired. Must be supplied.

direction

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

Examples

Run this code
if (FALSE) { # rlang::is_installed("scico")
paletteer_c("scico::berlin", 100)
}

Run the code above in your browser using DataLab