colorRampI: colorRampI

Description Usage Arguments Value Examples

View source: R/choropleth.R

Description

A wrapper for colorRamp with a few modifications. Returns a vector of color codes

Usage

1
2
colorRampI(x, na = "white", quantiles = TRUE, colors = c("white",
  "red"), ...)

Arguments

x

a numerical vector to be mapped on colors

na

if numeric - the value to which NAs in x are equivalent. If character - color for NA.

quantiles

logical, whether or not map in quantile space, or directly.

colors

- colors to interpolate, to be passed to colorRamp()

...

other arguments to be passed to colorRamp()

Value

vector of color codes

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.