CheckPlotsOverlap: Checks if plots in a cartesian arena overlap

Usage Arguments Value Examples

Usage

1
2
CheckPlotsOverlap(x_coords, y_coords, angles = NULL, shape = c("circle",
  "rectangle"), size = c(10, 10), distance = 0)

Arguments

x_coords

vector of x coordinates of the plots center.

y_coords

vector of x coordinates of the plots center.

angles

vector of the orientation angles of the plots center.

shape

a character string. Two shapes are possible: "rectangle" and "circle"

size

numeric vector. For ”rectangle” the dimension of x and y sidesand for ”circle” the radius size.

distance

numeric value. The minimum distance among plots

Value

A list of the plots with their overlapping plots

Examples

1
2
3
4
5
6
7
8
## Not run: 

x <- sample(seq(0, 1000), 50)
y <- sample(seq(0, 1000) , 50)
radius <- 10
overlap <- CheckPlotsOverlap(x, y, shape = "circle", size = radius, distance = 10)

## End(Not run)

vitorpaciello/Rsampleplot documentation built on May 15, 2019, 3:21 p.m.