Description Usage Arguments Value
This function generates a color scale
1 2 3 4 5 6 7 8 | colorScale(
x,
color = c("royalblue", "firebrick2"),
gama = 1,
alpha = 1,
scmax = 0,
nacol = "grey80"
)
|
x |
Vector or matrix of numeric values |
color |
Vector of character strings indicating the colors for the scale. Up to three colors can be defined. While is used for the missing color |
gama |
Number indicating the gama transformation |
alpha |
Number between 0 and 1 indicating the transparency of the color (1 for absolute color) |
scmax |
Number indicating the maximum value for the scale |
nacol |
Character string indicating the color for missing values |
Vector of colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.