buildBoxes: Build Boxes In A Plot Space

Description Usage Arguments Value Examples

Description

This function builds boxes based on corner vectors given by x and y.

Usage

1
buildBoxes(x, y = NULL)

Arguments

x

A vector of x values representing the corners of boxes along the X-axis. If the x and y-values are identical, only include the first corner vector, and the function will use it for the y-values as well.

y

A vector of y values representing the corners of boxes along the Y-axis. See above for more detail about symmetrical plots.

Value

The parameters should be generated by getSubplotCoords, or you can enter them manually. This function returns a data.frame listing (x,y) of the corners of each subplot, arbitrarily numbered. The columns are "POINT_X", "POINT_Y", and "Subplot", reflecting the standard format taken by TrapUTM.

Examples

1
2
xAndY <- getSubplotCoords()
head(buildBoxes(xAndY, xAndY))

ecology-rocks/disperseR documentation built on May 15, 2019, 7:58 p.m.