ttpalette: ttpalette(n) function

View source: R/ttcolors.R

ttpaletteR Documentation

ttpalette(n) function

Description

Return function(n) to interpolate a ttcolor palette

Usage

ttpalette(palette = "main", reverse = FALSE, nmax = NULL, order = NULL, ...)

Arguments

palette

Character name of palette. Run names(ttpalettes) for available options.

reverse

If TRUE, reverses the order of the colors in the color scale.

nmax

Maximum number of different colors the palette should contain. If not provided, is calculated automatically from the data.

order

Numeric vector listing the order in which the colors should be used. Default is 1:nmax.

...

Additional arguments to pass to grDevices::colorRampPalette().

Value

Color palette function(n)


ttecon/ttr documentation built on March 6, 2023, 7:36 a.m.