subplot: Functions to calculate subplot index and coordinates

subplotR Documentation

Functions to calculate subplot index and coordinates

Description

'splitPlot' create a index for subplots of any dimension

Usage

splitPlot(dx, dy, split.x = 5, split.y = split.x, max.x = 20, max.y = max.x)

subplotXY(
  xcode = LETTERS[1:16],
  ycode = c(paste(0, 0:9, sep = ""), 10:15),
  xsub = 20,
  ysub = 20
)

xyMin(subplot_code, xymin = subplotXY())

Arguments

dx

x coordinate inside subplots

dy

y coordinate inside subplots

max.x

maximum x coordinate

max.y

maximum y coordinate

gx

x coordinate for the all plot

gy

y coordinate for the all plot

sub.size

size of the subplots

plot.code

subplot codes

Details

'subplotXY' calculate the x and y coordinates for subplots

'xyMin' calculate x and y coordinates for a vector of suplots

Value

return a new coordinates gx and gy or plot.code with basal area and recalculated dbh for each tree.

Author(s)

Alexandre Adalardo de Oliveira aleadalardo@gmail.com

References

https://opendatakit.org/

See Also

http://labtrop.ib.usp.br

Examples


## Not run: 
splitPlot(dx = runif(10, 0,20), dy = runif(10, 0, 20), split.x = 5)
xcode <-  LETTERS[1:16]
ycode <-  c(paste(0, 0:9, sep = ""), 10:15)
xyMin(subplot_code = paste(sample(xcode, size = 25, replace = TRUE), sample(ycode, size = 25, replace = TRUE), sep = ""))  

## End(Not run)

adalardo/Rppsp documentation built on Sept. 17, 2022, 3:42 a.m.