grts.point: Draw a equi-probable GRTS sample from a discrete (point)...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/grts.point.r

Description

Draws an equi-probable unstratified Generalized Random Tessellation Stratified (GRTS) sample from a SpatialPoints* object

Usage

1
grts.point(x, n, over.n = 0)

Arguments

x

A SpatialPoints or SpatialPointsDataFrame object.

n

Sample size. The number of sample points to draw from x

over.n

Over-sample size. The number of 'over-sample' points to draw from x. The actual number of points drawn from x is n + over.n.

Details

This is a wrapper for the grts function in package spsurvey. This simplifies calling grts when equi-probable samples are desired. It extends the valid input frame types to SpatialPoints objects (i.e., no attributes), rather than just SpatialPointsDataFrame objects. For more complicated designs (e.g., variable probability, stratification), call grts directly.

Value

A SpatialPointsDataFrame containing locations in the GRTS sample, in order they are to be visited. Attributes of the sample points (in the embedded data frame) are as follows:

Author(s)

Trent McDonald

References

Stevens, D. L. and A. R. Olsen (1999). Spatially restricted surveys over time for aquatic resources. Journal of Agricultural, Biological, and Environmental Statistics 4 (4), 415-428.

Stevens, D. L. and A. R. Olsen (2004). Spatially balanced sampling of natural resources. Journal of the American Statistical Association 99, 262-278.

See Also

grts.line, grts.polygon, hal.point, sdraw

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#   Draw sample
WA.city.samp <- grts.point(WA.cities,100,50)

#   Plot
plot( WA.cities, pch=16, cex=.5 )

# Plot 'sample' locations
plot( WA.city.samp[ WA.city.samp$pointType == "Sample", ], pch=1, add=TRUE, col="red" )  

# Plot 'over sample' locations
plot( WA.city.samp[ WA.city.samp$pointType == "OverSample", ], pch=2, add=TRUE, col="blue" )  

SDraw documentation built on May 29, 2017, 6:14 p.m.