Learn R Programming

SOMMD (version 0.1.2)

map.color: Map the property vector to colours

Description

Function map a numeric vector of a property to a vector of colors for that property according to that property value.

Usage

map.color(x, pal, limits = NULL, na.col = "grey")

Value

A vector with colors proportional to the values of x

Arguments

x

a numeric vector

pal

a color palette

limits

the values of the extremes for the colorscale

na.col

the color that will be assigned to the na.values of the vector