Learn R Programming

SpatialExtremes (version 2.1-0)

symbolplot: Detecting spatial trends graphically

Description

This function performs a symbol plot to help in identifying any spatial trends

Usage

symbolplot(data, coord, which = "gev", plot.border = NULL,
 col = c("#FF000080", "#0000FF80"), plot.legend = TRUE, scale = 1)

Arguments

data

A matrix representing the data. Each column corresponds to one location.

coord

A matrix that gives the coordinates of each location. Each row corresponds to one location.

which

A character string specifying which values should be plotted. Must be one of "gev" (for the GEV marginal parameters), "mean" for pointwise mean or "median" for pointwise median.

plot.border

An R function that plots the border of the study region. If NULL (default) no border is plotted.

col

A vector of length 2 giving the colors to be used to fill the circles.

plot.legend

Logical. If TRUE (default), a legend is added to the plot.

scale

Positive number. It enables to enlarge (if scale > 1) or reduce (if 0 < scale < 1) the radius of the plotted circles to get a better display.

Value

A plot.

Details

This function will plot several circles whose center is located at the weather stations and whose radius is proportional to the departure of the value at that position to the areal mean value.

Examples

Run this code
# NOT RUN {
## Symbol plot for the Swiss rainfall data set
data(rainfall)
symbolplot(rain, coord, plot.border = swiss)
# }

Run the code above in your browser using DataLab