Description Usage Arguments Value Author(s) Examples
This function returns a vector of color names corresponding to a range of colors specified in the arguments.
1 |
low |
Color for the lower end of the color palette, specified using any of the three kinds of R colors, i.e., either a color name (an element of 'colors'), a hexadecimal string of the form '"#rrggbb"', or an integer 'i' meaning 'palette()[i]'. |
high |
Color for the upper end of the color palette, specified using any of the three kinds of R colors, i.e., either a color name (an element of 'colors'), a hexadecimal string of the form '"#rrggbb"', or an integer 'i' meaning 'palette()[i]'. |
mid |
Color for the middle portion of the color palette, specified using any of the three kinds of R colors, i.e., either a color name (an element of 'colors'), a hexadecimal string of the form '"#rrggbb"', or an integer 'i' meaning 'palette()[i]'. |
k |
Number of colors in the palette. |
A "character" vector of color names. This can be used to create a user-defined color palette for subsequent graphics by 'palette', in a 'col=' specification in graphics functions, or in 'par'.
Sandrine Dudoit, Yee Hwa (Jean) Yang.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.