setup.color | R Documentation |
Set colorGrad parameters
setup.color(
n = 101,
colors = NULL,
space = "rgb",
lo = "#01256E",
lomid = NULL,
mid = "white",
midhi = NULL,
hi = "#95001A",
colorbar = FALSE,
cb.mar = c(1, 1, 1, 1),
...
)
n |
Integer: How many distinct colors you want. If not odd, converted to |
colors |
Character: Acts as a shortcut to defining |
space |
Character: Which colorspace to use. Option: "rgb", or "Lab". Default = "rgb".
Recommendation: If |
lo |
Color for low end |
lomid |
Color for low-mid |
mid |
Color for middle of the range or "mean", which will result in |
midhi |
Color for middle-high |
hi |
Color for high end |
colorbar |
Logical: Create a vertical colorbar |
cb.mar |
Vector, length 4: Colorbar margins. Default: c(1, 1, 1, 1) |
... |
Additional arguments |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.