Description Usage Arguments Details Value See Also
This function is used to obtain a color scale from a set of values
1 2 | colo.scale(x,cols=c("white","yellow","tomato3","darkred"),rescale01=FALSE,
center=TRUE,breaks=NULL)
|
x |
A numeric vector |
cols |
A vector of colors |
center |
Whether to center the middle color value at 0 |
rescale01 |
Whether to keep values between 0 and 1 to a scale going from 0 to 1. Defaults to |
breaks |
A numeric vector. If breaks are given, value will be classified into each color provided the number of breaks equals the number of colors given. In other words, |
This function is a simple wrapper for the colorRamp
function.
A color vector of the same length as x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.