selectrandomquad: Draws rectangular quadrats in a plot at random.

Description Usage Arguments Details Functions Arguments details

Description

Draw rectangular quadrats in a plot at random. Returns a dataframe of coordinates defining the corners of all the quadrats.

Usage

1
2
3
4
5
6
7
selectrandomquad(size, shape, rep, plotdim = c(1000, 500),
  graphit = FALSE)

selectrandomquad2(size, rep, plotdim = c(1000, 500), graphit = FALSE)

selectrandomquad3(size, shape, rep, plotdim = c(1000, 500),
  graphit = FALSE)

Arguments

size

A vector of quadrat sizes, referring to the x-dimension of a rectangular quadrat.

shape

The ratio of y to x dimensions of the rectangles; rectdim = 1 (the default) for squares.

rep

The number of replicated random quadrats (per dimension submitted) to create.

plotdim

The x and y dimensions of the plot.

graphit

Logical; if TRUE adds plot output.

Details

Quadrats are chosen simply: a point is chosen by randomly drawing one x and one y coordinates to serve as the lower-left corner. The x is chosen from a uniform distribution between 0 and plotdim[1]-size; y is chosen similarly.

All 3 algorithms (selectrandomquad(), selectrandomquad2() and selectrandomquad3()) under sample the plot corners. That bias, selectrandomquad2() and selectrandomquad3() intended to overcome; but neither does.

Functions

Arguments details


forestgeo/ctfs documentation built on May 3, 2019, 6:44 p.m.