Detecting spatial trends graphically

Share:

Description

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

Usage

1
2
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.

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.

Value

A plot.

Author(s)

Mathieu Ribatet

Examples

1
2
3
## Symbol plot for the Swiss rainfall data set
data(rainfall)
symbolplot(rain, coord, plot.border = swiss)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.