rev.colourmap | R Documentation |
Reverse the sequence of colour values in a colour map.
## S3 method for class 'colourmap'
rev(x)
x |
A colour map (object of class |
This is a method for the generic rev
for the class of colour maps.
The sequence of colour values in the colour map will be reversed, without changing any other details.
A colour map (object of class "colourmap"
).
.
colourmap
,
colouroutputs
co <- colourmap(rainbow(100), range=c(-1,1))
opa <- par(mfrow=c(1,2))
plot(co, vertical=TRUE)
plot(rev(co), vertical=TRUE)
par(opa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.