persp.linim | R Documentation |
Given a pixel image on a linear network, generate a perspective view.
## S3 method for class 'linim'
persp(x, ..., main,
grid = TRUE, ngrid = 10,
col.grid = "grey", col.base = "white",
neg.args=list(), warncross=FALSE)
x |
Pixel image on a linear network (object of class |
... |
Arguments passed to |
main |
Main title for the plot. |
grid |
Logical value indicating whether to draw a rectangular grid at height zero, to assist the perception of perspective. |
ngrid |
Number of grid lines to draw, if |
col.grid |
Colour of grid lines, if |
col.base |
Colour of base plane, if |
neg.args |
Optional list of arguments passed to |
warncross |
Logical value indicating whether to issue a warning if two segments of the network cross each other (which causes difficulty for the algorithm). |
The pixel values are interpreted as the spatially-varying height of a vertical surface erected on each segment of the linear network. These surfaces are drawn in perspective view.
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.linfun
if(interactive()) {
Z <- density(chicago, 100)
} else {
X <- runiflpp(10, simplenet)
Z <- density(X, 0.1)
}
persp(Z, theta=30, phi=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.