persp.linfun | R Documentation |
Given a function on a linear network, generate a perspective view.
## S3 method for class 'linfun'
persp(x, ..., main, eps = NULL, dimyx = NULL, xy = NULL)
x |
The function to be plotted. An object of class |
... |
Arguments passed to |
main |
Main title for the plot. |
eps , dimyx , xy |
Arguments passed to |
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).
(Invisibly) the perspective transformation matrix,
as described in the help for persp.default
.
and Greg McSwiggan.
Okabe, A. and Sugihara, K. (2012) Spatial Analysis Along Networks. John Wiley and Sons, New York.
persp.linim
f <- linfun(function(x,y,seg,tp) { abs(sin(25*x)) + abs(sin(15*y)) }, simplenet)
persp(f, phi=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.