rank2colors | R Documentation |
Rank a numeric vector using proportional table and returns character vector of names of color using palette
rank2colors(x, palette = "Blues", reverse = TRUE, color = "red")
x |
A numeric vector |
palette |
Name of the color palette |
reverse |
Logical. Whether or not reverse the order of the color palette |
color |
Default color when palette is NULL |
rank2colors(mtcars$wt,palette="Blues")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.