maxExtent: Create an extent object encompassing a list of corrdinate...

Description Usage Arguments Value See Also Examples

Description

Given a list (list) of matrices giving coordinates of points, calculate the smallest extent containing them all. Optionally, add a margin around the most extreme points using the margin argument.

Usage

1
maxExtent(list, margin = c(0, 0, 0, 0))

Arguments

list

A list of matrices, each giving the latitudes (column 1) and longitudes (column 2) of a set of points.

margin

An optional vector of length four giving a margin (in the map units) around the most extreme points.

Value

An extent object encompassing the points in list.

See Also

extent

Examples

1
2
3
4
5
# create coordinate matrices
one <- matrix(rnorm(3 * 2), ncol = 2)
two <- matrix(rnorm(5 * 2), ncol = 2)

e <- maxExtent(list(one, two), margin = c(1, 1, 1, 1))

SEEG-Oxford/seegSDM documentation built on May 9, 2019, 11:08 a.m.