map.color: Map the property vector to colours

View source: R/network.functions.R

map.colorR Documentation

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")

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

Value

A vector with colors proportional to the values of x


SOMMD documentation built on Oct. 2, 2024, 5:07 p.m.