Learn R Programming

DSpat (version 0.1.5)

simPts: Simulates point process on a rectangular grid

Description

Generates a set of points from either a homogeneous or inhomogeneous Poisson process with optional clustering. This is a wrapper function for rpoispp from the spatstat package. The intensity is defined by covariates on a grid, an intensity formula and parameters. The correlation structure is defined by the model and the correlation parameters.

Usage

simPts(covariates,int.formula=~1, int.par=c(1), EN=100,
                    model="exp", cor.par=NULL, showplot=FALSE, showpts=FALSE, ...)

Arguments

Value

ppp object of point locations

See Also

simCovariates

Examples

Run this code
hab.range=30
probs=c(1/3,2/3)
covariates = simCovariates(hab.range, probs)
xpp=simPts(covariates=covariates,int.formula=~factor(habitat),int.par=c(0,1,2))
plot(xpp)

Run the code above in your browser using DataLab