powered by
Given a function on a linear network, generate a perspective view.
# S3 method for linfun persp(x, ..., main, eps = NULL, dimyx = NULL, xy = NULL)
(Invisibly) the perspective transformation matrix, as described in the help for persp.default.
persp.default
The function to be plotted. An object of class "linfun".
"linfun"
Arguments passed to persp.linim controlling the appearance of the plot.
persp.linim
Main title for the plot.
Arguments passed to as.linim determining the spatial resolution when the function is converted to an image.
as.linim
Adrian Baddeley Adrian.Baddeley@curtin.edu.au and Greg McSwiggan.
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.
x
This style of plot is often attributed to Okabe and Sugihara (2012).
Okabe, A. and Sugihara, K. (2012) Spatial Analysis Along Networks. John Wiley and Sons, New York.
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