expand_color_pal: Interpolates between entries in the input palette to make a...

View source: R/utils_color.R

expand_color_palR Documentation

Interpolates between entries in the input palette to make a larger palette with COLOR_RES entries.

Description

Interpolates between entries in the input palette to make a larger palette with COLOR_RES entries.

Usage

expand_color_pal(pal, COLOR_RES = 255)

Arguments

pal

The color palette to expand, as a data.frame with two columns: "color" (character: color hex codes) and "value" (numeric, ascending).

COLOR_RES

The number of entries to have in the output palette.

Value

A data.frame with two columns: "color" (character: color hex codes) and "value" (numeric)

See Also

Other coloring: ROY_BIG_BL(), make_color_pal(), use_color_pal()


ciftiTools documentation built on Oct. 4, 2024, 1:12 a.m.