Learn R Programming

ramps (version 0.5-2)

plot: Posterior Spatial Distribution Plots

Description

Creates surface maps of posterior spatial distributions from georamps or predict.ramps.

Usage

## S3 method for class 'ramps':
plot(x, type = c("i", "c", "w"), func = mean, sites = FALSE, database = NULL,
        regions = ".", resolution = c(64, 64), theta = 1, ...)

   ## S3 method for class 'predict.ramps':
plot(x, type = c("i", "c", "w"), func = mean, database = NULL,
        regions = ".", resolution = c(64, 64), theta = 1, ...)

Arguments

x
object returned by georamps or predict.ramps.
type
type of plot to produce: "i" = image.plot (default), "c" = contour, and "w" = persp wireframe.
func
function defining the posterior summary statistic to be plotted.
sites
logical value indicating whether to include the measurements sites in the plot.
database
character string naming a geographical database for the mapping of geographic boundaries. See map documentation for details.
regions
character vector naming the polygons to draw. See map documentation for details.
resolution
numerical vector of length 2 specifying the number of pixels (width x height) for the surface image.
theta
bandwidth used for smoothing the spatial surface.
...
additional arguments passed to the underlying plotting function associated with the specified type argument.

See Also

georamps predict.ramps contour image.plot persp map

Examples

Run this code
## Surface maps of the georamps example results

plot(NURE.fit, database = "state", regions = "connecticut",
     resolution = c(200, 150), theta = 0.1,
     main = "Spatial Process Posterior Mean")

Run the code above in your browser using DataLab