View source: R/network.functions.R
map.color | R Documentation |
Function map a numeric vector of a property to a vector of colors for that property according to that property value.
map.color(x, pal, limits = NULL, na.col = "grey")
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 |
A vector with colors proportional to the values of x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.