Creates random transects from points and generates sample points along each transect
sampleTransect(x, min.length, max.length, id = NULL, ...)
x | A sp point object |
---|---|
min.length | Minimum length of transect(s) |
max.length | Maximum length of transect(s) |
id | A unique identification column in x |
... | Additional arguments passed to sample.line |
Function create random direction and length transects and then creates a point sample along each transect. The characteristic of the sample points are defined by arguments passed to the sample.line function
Jeffrey S. Evans <jeffrey_evans@tnc.org>
#> Warning: Discarded datum Amersfoort in Proj4 definitionmeuse <- meuse[sample(1:nrow(meuse),10),] transects <- sampleTransect(meuse, min.length=200, max.length=500, min.samp = 3) plot(transects$transects)