act_pal: Generates a function to create a palette based on those...

View source: R/act_pal.R

act_palR Documentation

Generates a function to create a palette based on those included in the package.

Description

Generates a function to create a palette based on those included in the package.

Usage

act_pal(palette = "ncezid", reverse = FALSE)

Arguments

palette

name of pre-fab palette on which to base output (in quotes)

reverse

boolean variable defaulting to FALSE. Set to TRUE if want to reverse

...

arguments passed to colorRampPalette

Value

A function which outputs a palette of desired length, interpolating between stated colors if necessary.

Examples

pal_5 <- act_pal("aladdin_sane")(5)

deansayre/Rtesunate documentation built on July 25, 2024, 7:22 p.m.