subplot: Functions to calculate subplot index, code and coordinates

subplotR Documentation

Functions to calculate subplot index, code and coordinates

Description

'splitPlot' create a code for subquadrats of any dimension

Usage

splitPlot(dx, dy, splitX = 5, splitY = splitX, maxX = 20, maxY = maxX)

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

xyMin(subplot_code, xymin = subplotXY())

splitPlotXY(subplotxy, splitX = 5, splitY = splitX, maxX = 20, maxY = maxX)

splitPlotData(
  censoData,
  subplotCodes,
  splitQuadXY,
  buffer = 2,
  dbh = "dbh",
  gx = "gx",
  gy = "gy",
  status = "status19"
)

Arguments

dx

x coordinate for subplot

dy

y coordinate inside subplots

splitX

x size of subquadrats

splitY

y size of subquadrats, default equal do 'splitX'

maxX

maximum potential value for 'dx'

maxY

maximum potential value for 'dy'

gx

x coordinate for the all plot

gy

y coordinate for the all plot

sub.size

size of the subplots

max.x

maximum x coordinate

max.y

maximum y coordinate

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

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

Value

return a new coordinates gx and gy or plot code in the format '0x0' representing origin for subplot

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 June 10, 2025, 1:11 p.m.