continuous.sample: Spatially continuous sampling

Description Usage Arguments Details Value Author(s) Examples

Description

Draws a sample of spatial locations within a spatially continuous polygonal sampling region.

Usage

1
continuous.sample(poly, n, delta, k = 0, rho = NULL)

Arguments

poly

boundary of a polygon.

n

number of events.

delta

minimum permissible distance between any two events in preliminary sample.

k

number of locations in preliminary sample to be replaced by near neighbours of other preliminary sample locations in final sample (must be between 0 and n/2)

rho

maximum distance between close pairs of locations in final sample.

Details

To draw a sample of size n from a spatially continuous region A, with the property that the distance between any two sampled locations is at least delta, the following algorithm is used.

Sampling close pairs of points. For some purposes, it is desirable that a spatial sampling scheme include pairs of closely spaced points. In this case, the above algorithm requires the following additional steps to be taken. Let k be the required number of close pairs. Choose a value rho such that a close pair of points will be a pair of points separated by a distance of at most rho.

Value

A matrix of dimension n by 2 containing event locations.

Author(s)

Emanuele Giorgi e.giorgi@lancaster.ac.uk

Peter J. Diggle p.diggle@lancaster.ac.uk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(geoR)
data(parana)
poly<-parana$borders
poly<-matrix(c(poly[,1],poly[,2]),dim(poly)[1],2,byrow=FALSE)
set.seed(5871121)

# Generate spatially regular sample
xy.sample<-continuous.sample(poly,100,30)
plot(poly,type="l",xlab="X",ylab="Y")
points(xy.sample,pch=19,cex=0.5)

barryrowlingson/PrevMap documentation built on May 11, 2019, 6:24 p.m.