plotColors | R Documentation |
This function takes a color name -or more- as argument (e.g. "green") and displays all the variants of this color that R knows about. This way one can choose the most aesthetically pleasing colors to use for his/her plot.
plotColors(x)
plotColours(x)
x |
One or more color names (as a character vector) |
The function matches x to the color names that colors
returns, and then plots nice rectangles each filled with a matching color
and labelled with the respective color name.
Nothing
plotColors("sea")
plotColors(c("green","yellow"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.