MapToColors | R Documentation |
Construct color scale for a numeric value
MapToColors(
x,
min.x = if (length(x) == 1) 1 else min(x),
max.x = max(x),
mid.x = NULL,
min.color = "white",
mid.color = "Displayr grey",
max.color = "Displayr blue"
)
x |
A numeric vector specifying the colors returne |
min.x |
A numeric value representing the smallest value on the color scale. Values in
|
max.x |
A numeric value representing the largest value on the color scale. Values in
|
mid.x |
A numeric value representing the midpoint on the color scale. |
min.color |
The color representing the smallest value. |
mid.color |
The color representing the mid point on the color scale. |
max.color |
The color representing the max point on the color scale. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.