panel.levelplot.interp {hydrosanity}R Documentation

Panel functions for spatial layers

Description

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.

Usage

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(...)

Arguments

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.

Details

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.

Value

~Describe the value returned If it is a LIST, use

comp1 Description of 'comp1'
comp2 Description of 'comp2'

...

Author(s)

Felix Andrews felix@nfrac.org

See Also

levelplot, voronoi.mosaic, interp, map

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--    or do  help(data=index)  for the standard data sets.


[Package hydrosanity version 0.8.76 Index]