powered by
instantiate a vector of colors from a ColorPlane specification.
map_colors(x, ...)# S4 method for ConstantColorPlane map_colors(x)# S4 method for HexColorPlane map_colors(x)# S4 method for DiscreteColorPlane map_colors(x, values, ...)# S4 method for IntensityColorPlane map_colors(x, alpha = 1, threshold = NULL, irange = NULL)
# S4 method for ConstantColorPlane map_colors(x)
# S4 method for HexColorPlane map_colors(x)
# S4 method for DiscreteColorPlane map_colors(x, values, ...)
# S4 method for IntensityColorPlane map_colors(x, alpha = 1, threshold = NULL, irange = NULL)
a HexColorPlane instance containing the mapped colors
HexColorPlane
the object to map over
extra args
the values to map to colors via the discrete lookup table
alpha multiplier from 0 to 1.
two-sided threshold as a 2-element vector, e.g. `threshold=c(-3,3)` indicating two-sided transparency thresholds.
the intensity range defining min and max of scale.
cp <- IntensityColorPlane(seq(1,100), cols=rainbow(25)) cl <- map_colors(cp, irange=c(0,50)) stopifnot(cl@clr[50] == rainbow(25)[25])
Run the code above in your browser using DataLab