panel.levelplot.interp {hydrosanity} | R Documentation |
Functions for plot-time spatial interpolation, which can be used as panel functions for levelplot. Also some generally useful spatial layers, assuming a latitude-longitude coordinate system.
panel.levelplot.mosaic <- function(x, y, z, subscripts = T, at = seq(min(z, na.rm = T), max(z, na.rm = T), length = 100), col.regions = regions$col) panel.levelplot.interp(x, y, z, subscripts = T, xo.length = 40, yo.length = xo.length, linear = T, extrap = F, contour = F, region = T, at, ...) panel.contourplot.interp(..., contour = T, region = F) panel.worldmap(col = "black", ...) panel.rivers(col = "blue", lty = "longdash", ...) panel.cities(pch = 15, col = "black", ...) prepanel.extend.10(...)
x, y, z |
x and y coordinates and z value to be interpolated. |
subscripts |
used by Lattice for conditioning. |
at |
z values at which to indicate changes. May be omitted, see details below. |
col.regions |
a vector of colours representing levels. See levelplot . |
xo.length, yo.length |
resolution of interpolated surface.
The plot region is divided into xo.length * yo.length cells. |
linear |
use bicubic rather than linear interpolation. |
extrap |
for linear=F , use spatial extrapolation outside
the convex hull of the data. |
contour |
draw contour lines (passed to panel.levelplot . |
region |
draw shaded image (passed to panel.levelplot . |
... |
further arguments passed to panel.levelplot . |
col, lty, pch |
passed on to the usual drawing functions. |
For panel.levelplot.interp
, if the at
argument is missing it is taken as pretty(z)
if contour=T
and a 100-point sequence between the ranges of z
otherwise.
~Describe the value returned If it is a LIST, use
comp1 |
Description of 'comp1' |
comp2 |
Description of 'comp2' |
...
Felix Andrews felix@nfrac.org
levelplot
, voronoi.mosaic
, interp
, map
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets.