Description Usage Arguments Examples
View source: R/visualise.density.R
This function plots a randomly placed set of num.pts
in
the window win
, and colours the surface with the density using the bandwidth
sigma
. The density at (0,0) is displayed. This is useful when understanding
and determining the crowding density and the relationship to bandwidth.
1 | plot.density.example(win, num.pts = 20, sigma = 1)
|
win |
Spatial window |
num.pts |
Number of points randomly placed in the window |
sigma |
Bandwidth |
1 2 3 | # Create a window centred on (0,0)
win <- owin(xrange=c(-2,2),yrange=c(-2,2),unitname="metres")
plot.density.example(win,num.pts=10,sigma=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.