envinmrPalette | R Documentation |
this function updates existing spplot
objects so that
i) the axes are drawn at all four sites (as these usually represent
coordinates), ii) the default colorpalette from envinmr.theme() is used
and ii) the colorkey is plotted on top of the graph so
that the main = ... argument can be used to describe the colorkey.
envinmrPalette(n)
n |
the number of colours to be created |
Tim Appelhans
colorRampPalette
rst <- raster::raster(volcano)
p1 <- spplot(rst)
p1
p2 <- envinmrRasterPlot(p1, col.regions = envinmrPalette(100))
p2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.