Rdocumentation
powered by
Learn R Programming
NetRep (version 1.0.2)
getColFromPalette: Map a variable to a color gradient
Description
For a color gradient mapped onto a scale of values (
vlim
), retrieve the color for any given
value
Usage
getColFromPalette(values, palette, vlim)
Arguments
values
a vector of values to retrieve the colors for.
palette
a vector of colors
vlim
limits of the values
Value
The color for a given value.