Learn R Programming

spatstat.linnet (version 3.2-2)

distmap.lpp: Distance Map of Point Pattern on Linear Network

Description

Computes the distance from each pixel to the nearest point in the given point pattern on a linear network.

Usage

# S3 method for lpp
distmap(X, ..., k=1)

Value

A pixel image on the network (object of class "linim") whose greyscale values are the values of the distance map.

Arguments

X

A point pattern on a linear network (object of class "lpp").

k

Integer. The distance to the k-th nearest data point will be computed.

...

Arguments passed to as.linim.linfun to control pixel resolution.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk.

Details

This is a method for the generic function distmap. It computes the distance map of the point pattern X as a pixel image on the network.

At a pixel \(u\), the greyscale value equals the distance from \(u\) to the nearest point of the pattern X (or the \(k\)-th nearest point of X).

See Also

Generic function distmap and methods.

Examples

Run this code
  plot(distmap(spiders))

Run the code above in your browser using DataLab