Bounding Box for a Spatial Point Pattern

DESCRIPTION:

Generates a bounding box for a list of points in particular for an object of class spp.

USAGE:

bbox(x, y) 

REQUIRED ARGUMENTS:

x
an object of class "spp", a spatial point pattern object. It could also be a list with named components "x" and "y" or a vector of x-coordinates when argument y is given.

OPTIONAL ARGUMENTS:

y
numeric vector. Needed if x is a vector in which case it must have the same length as x.

VALUE:

a list with two named components "x" and "y" containing the coordinates of the corners of the bounding box of the data in x (and y, if given).

EXAMPLES:

bbox(lansing) 
maples <- spp(lansing[lansing$species == "maple",],drop=T) 
bbox(maples)