View source: R/colorful-palettes.R
Color palette for 'bias' plots.
1 2 | divergencePalette(n = 64, zlim = c(-1, 1), col = c("dodgerblue3",
"firebrick3"), symmetric = TRUE, p = 0.8, center = 0)
|
n |
Number of colors |
zlim |
Range of the variable, zero must be inside. |
col |
Vector of two colors, for the negative and positive values. |
symmetric |
Boolean, if TRUE makes the palette symmetric (same intensity given the absolute value of the variable). |
p |
Power to scale the increase in intensity. Default is 0.8, 1 gives linear decrease. |
center |
Center of the palette, zero by default. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.