This function is a low-level utility to generate spatial point patterns for the MICRO-LANDSCAPE point sets.

pointsLattice(n, xLim = c(0, 1), yLim = c(0, 1))

Arguments

n

number of points to generate

xLim

a length 2 numeric vector of bounds for the sampling grid

yLim

a length 2 numeric vector of bounds for the sampling grid

Value

a list with two elements x and y corresponding to the sampled points

Examples

pointsLattice(n=10, xLim=c(0,1), yLim=c(0,1))
#> $x #> [1] 0.125 0.375 0.625 0.875 0.125 0.375 0.625 0.875 0.125 0.375 0.625 0.875 #> [13] 0.125 0.375 0.625 0.875 #> #> $y #> [1] 0.125 0.125 0.125 0.125 0.375 0.375 0.375 0.375 0.625 0.625 0.625 0.625 #> [13] 0.875 0.875 0.875 0.875 #>