Learn R Programming

spatstat.linnet (version 3.4-0)

persp.linfun: Perspective View of Function on a Linear Network

Description

Given a function on a linear network, generate a perspective view.

Usage

# S3 method for linfun
persp(x, ..., main, eps = NULL, dimyx = NULL, xy = NULL)

Arguments

Value

(Invisibly) the perspective transformation matrix, as described in the help for persp.default.

Details

The function x is converted to a pixel image on the linear network using as.linim. Then persp.linim is invoked to generate the perspective plot.

This style of plot is often attributed to Okabe and Sugihara (2012).

References

Okabe, A. and Sugihara, K. (2012) Spatial Analysis Along Networks. John Wiley and Sons, New York.

See Also

persp.linim

Examples

Run this code
f <- linfun(function(x,y,seg,tp) { abs(sin(25*x)) + abs(sin(15*y)) }, simplenet)
persp(f, phi=20)

Run the code above in your browser using DataLab