Description Usage Arguments Author(s) References
Takes a trellis object generated by rasterVis::levelplot, and a colour ramp, and plots the object with the colours diverging around zero.
1 | diverge0(p, ramp='RdBu')
|
p |
Trellis object generated by rasterVis::levelplot |
ramp |
The name of an RColorBrewer palette (as character), a character vector of colour names to interpolate, or a colorRampPalette |
J Baums
http://stackoverflow.com/questions/33750235/plotting-a-raster-with-the-color-ramp-diverging-around-zero
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.