geo2envid: Interactive plot to explore points in geographical and...

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

An interactive plot with options to select to explore points in the geographical or environmental space. The environmental space is defined by the values of two environmental variables.

Usage

1
2
3
4
geo2envid(edat, g1, group1 = "Species", group2 = "", 
world, xc = "AP", yc = "AMT", xname = "Annual Precipitation (mm)", 
yname = "Mean Annual Temperature", showrecord = "", 
ext = c(-180, 180, -60, 90))

Arguments

edat

a dataframe containing fields with the following names: ID, x, y, Species, x_original, y_original, Correction, Modified, Exclude and the values of selected environmental variables

g1

the name of the species to select

group1

this is usually the column of species names

group2

a second grouping variable

world

a shapefile of the world, where the column containing the country names must be "NAMES"; see data(wrld_simpl)

xc

the name of the environmental variable to be used on the x-axis of the environmental space

yc

the name of the environmental variable to be used on the y-axis of the environmental space

xname

x-axis label for the environmental space

yname

y-axis label for the environmental space

showrecord

the ID of a selected record to be shown on the map

ext

The extent, which can be specified as c(xmin, xmax, ymin, ymax) default extent c(-180, 180, -90, 90). Alternatively if ext="p" then the extent will be calculated from the coordinates of the points in the dataset.

Details

The selected records are marked with a red dot and ID numbers are shown. Records that are considered to be outliers can be excluded by selecting the record in the environmental space. A menu with various options is produced.

Value

Interactive plot

Note

plotsetup should be run first

Author(s)

Mark Robertson and Vernon Visser

See Also

plotsetup, geo2envpca, alternatives, alternativesenv, wclim

Examples

1
2
3
4
5
6
## Not run: 
plotsetup(6,6)
ed<-geo2envid(edat,"Species U","Species","",world,xc="bio12",
yc="bio1",xname="Ann. Precip.",yname="Ann. Mean Temp.",
showrecord="",ext="p")
## End(Not run)

biogeo documentation built on May 1, 2019, 8:05 p.m.