Description Usage Arguments Value Examples
The function is used to genrate color palette, which will used for visualed
to render mesh object.
1 2 | colorbar(vec, col.pal = colorRampPalette(c("blue", "red")),
output = NULL)
|
vec |
A vector. Each of its elements will be assigned a RGB value from the color palette |
col.pal |
A list of colors or a colorRampPalette object.
The default is |
output |
the output path. the default is NULL. if output is NULL, the color bar will not be printed to a file. |
a vector of colors
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.