View source: R/center.palette.R
center.palette | R Documentation |
Calculates a color palette where zero values are centered at white.
center.palette(data, palette_length = 100, color1 = "blue",
color2 = "red")
data |
A matrix of integers. |
palette_length |
The size of the color palette. Default = 100 |
color1 |
The color for the low bound. Default = "blue" |
color2 |
The upper bound color. Default = "red" |
A vector containing the new color palette.
Amy L. Olex alolex@vcu.edu
my_palette <- center.palette(data, palette_length = 200, color1 = "black", color2 = "pink")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.