mapCoordinatesToColor: Determine color values according to a given range of values.

Description Usage Arguments Value Author(s)

View source: R/repgrid-plots.r

Description

From a given numeric vector z the range is determined and the values are linearly mapped onto the interval given by val.range. Then a color ramp using the colors given by color is created and the mapped values are transformed into hex color values.

Usage

1
mapCoordinatesToColor(z, colors = c("white", "black"), val.range = c(0.2, 0.8))

Arguments

z

numeric vector.

val.range

numeric vector of lengths two (default c(.2, .8)).

color

vector of length two giving color values c("white", "black").

Value

numeric vector

Author(s)

Mark Heckmann


markheckmann/OpenRepGrid documentation built on April 30, 2021, 2:33 a.m.