View source: R/spFilledContour.R
spFilledContour | R Documentation |
this function plots Raster* objects as filled contours
spFilledContour(x, xlab = "", ylab = "", ...)
x |
a Raster* object |
xlab, ylab |
character axis labels, see |
... |
Further arguments passed on to |
Tim Appelhans
panel.filledcontour
library(raster)
library(sp)
data(meuse.grid)
coordinates(meuse.grid) = ~x+y
proj4string(meuse.grid) <- CRS("+init=epsg:28992")
gridded(meuse.grid) = TRUE
## convert to raster
meuse_rst <- raster(meuse.grid, layer = "dist")
## standard spplot
spplot(meuse_rst)
## spFilledContour plot
plot.new() # needed when using package 'gridBase' (used in panel.filledcontour)
spFilledContour(x = meuse_rst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.