Description Usage Arguments Value Examples
This function converts a palette represented as a data.frame into a vector of R colours ready for plotting.
1 |
palette |
A data.frame with red, green and blue columns representing a palette.. |
A vector of R colors.
1 2 3 | library(colorspace)
palette<-data.frame(red=c(0.1, 0.2, 0.3), green=c(0.4, 0.5, 0.6), blue=c(0.7, 0.8, 0.9))
rColours<-paletteToR(palette)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.