Last data update: 2014.03.03
R: Plot the density map
plot.densityOut R Documentation
Plot the density map
Description
Plots the boundary, all holes and the locations of all
nodes along with the density contour map.
Usage
## S3 method for class 'densityOut'
plot(x,show.observations=FALSE,...)
Arguments
x
an object of type densityOut
returned by createDensity.
show.observations
if TRUE, prints the data in the plot.
...
other arguments to be passed to functions plot, points, lines.
Author(s)
Ronald P. Barry rpbarry@alaska.edu
References
Ronald P. Barry, Julie McIntyre. Estimation animal densities and home
range in regions with irregular boundaries and holes: A lattice-based
alternative to the kernel density estimator.
Ecological Modelling 222 (2011) 1666-1672.
Examples
plot.new()
data(polygon1)
#
nodeFillingOutput = nodeFilling(poly=polygon1,node.spacing=0.025)
plot(nodeFillingOutput)
formLatticeOutput = formLattice(nodeFillingOutput)
plot(formLatticeOutput)
#
Pointdata = csr(polygon1,100)
Pointdata = Pointdata[Pointdata[,1]<0.5,]
plot(rbind(polygon1,polygon1[1,]),type="l")
points(Pointdata,pch=19)
#
densityOut = createDensity(formLatticeOutput,PointPattern=Pointdata,
k=60,intensity=FALSE, sparse = TRUE)
plot(densityOut)
#
homerange(densityOut, percent = 0.95)
Results