Description Usage Arguments Value Examples
View source: R/visualise.density.R
For a given window, randomly place 1:num.pts in a window
and measure the density at (0,0) using the bandwidth sigma. This can be
used to understand the density for randomly distributed populations when
setting the crowding parameters for the model.
1 | origin.density(win, num.pts = 20, trials = 10, sigma = 1)
|
win |
Spatial window of type |
num.pts |
Maximum number of points to randomly place in the window |
trials |
Number of times to resample points |
sigma |
The bandwidth used for |
Matrix with number of rows as points increase from 1:num.pts, each column
is the measured density at (0,0) for the particular number of points for each trial.
1 2 3 4 | # Create a window centred on (0,0)
win <- owin(xrange=c(-2,2),yrange=c(-2,2),unitname="metres")
den <- origin.density(win,num.pts=20,trials=50)
boxplot(t(den),xlab="Number Points",ylab="Density")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.