plot.density.example: Density plot for a given number of points and bandwidth

Description Usage Arguments Examples

View source: R/visualise.density.R

Description

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.

Usage

1
plot.density.example(win, num.pts = 20, sigma = 1)

Arguments

win

Spatial window

num.pts

Number of points randomly placed in the window

sigma

Bandwidth

Examples

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)

pwhigham/spatibm documentation built on Aug. 30, 2019, 1:16 p.m.