mapColor: Map data values to color codes

View source: R/server_func.R

mapColorR Documentation

Map data values to color codes

Description

Produce color codes for plotting.

Usage

mapColor(x,
                range.min = NA,
                range.max = NA,
                levels = NA,
                nbreaks = 10,
                colors = .encode.arg(c('orange', 'blue')),
                ...)

Arguments

x

A factor or a numeric vector.

range.min

Global minimum of x, including other nodes. Default, min(x).

range.max

Global maximum of x, including other nodes. Default, max(x).

levels

Encoded value of a character vector indicating the global levels of x, when x is a factor. Default, .encode.arg(levels(x)).

nbreaks

An integer indicating the number of intervals into which x is to be cut, less than length(x)/10, when x is numeric.

colors

Encoded value of a vector of colors to interpolate, must be a valid argument to col2rgb(). Default, .encode.arg(c('orange', 'blue')).

...

arguments to pass to colorRampPalette

Value

Color codes


vanduttran/dsSSCP documentation built on Jan. 17, 2025, 1:47 a.m.