use_color_pal

0th

Percentile

Use a color palette

Applies a palette to a data vector to yield a vector of colors.

Usage
use_color_pal(data_values, pal, color_NA = "white", indices = FALSE)
Arguments
data_values

The values to map to colors

pal

The palette to use to map values to colors

color_NA

The color to use for NA values. Default: "white".

indices

Return the numeric indices of colors in pal$value rather than the colors themselves. A value of 0 will be used for missing data. Default: FALSE.

Value

A character vector of color names (or integers if indices).

Aliases
  • use_color_pal
Documentation reproduced from package ciftiTools, version 0.1.6.0, License: GPL-3

Community examples

Looks like there are no examples yet.