Learn R Programming

EnviroStat (version 0.4-2)

Disp.link: Function to plot and link points in a dispersion-distance plot and a geographic map.

Description

User may identify points on the dispersion scatter in order to identify line segments on the coordinate plot, **and/or** identify individual sites on the coordinate plot in order to highlight the corresponding set of points on the dispersion scatter.

Usage

Disp.link(disp.mx, coords, dmap, ddisp, names, device = getOption('device'))

Arguments

disp.mx
nxn matrix of dispersions (i.e. Var(Z(x)-Z(y))
coords
nx2 matrix of coordinates
dmap
device number for existing window to be used for map (optional)
ddisp
device number for existing window to be used for dispersion plot (optional)
names
not yet used, but might be used for labelling
device
a character string giving the name of a function, or the function object itself, which when called creates a new graphics device

Value

Indices of station pairs selected in the dispersion plot, and indices of individual stations selected on the coordinate plot.