Description Usage Arguments See Also Examples
Plot a 2.5D surface mesh augmented with associated data locations. The package plot3D is used.
1 2 |
x |
An object of class |
loc |
#data-by-3 matrix collecting the locations of data points over the mesh. Default is NULL, i.e. the data points are assumed to coincide with the mesh vertices. |
phi |
Colatitude (in degrees) identifying the viewing direction; default is 40. |
theta |
Longitude (in degrees) identifying the viewing direction; default is 40. |
... |
Additional arguments passed to the plotting methods; these include: xlim, ylim, zlim, xlab, ylab, zlab, main, sub, r, d, scale, expand, box, axes, nticks, ticktype. |
1 2 3 4 5 6 7 8 9 10 | ## Import the mesh of a pawn
data(pawn_250)
## Plot the original mesh
plot.mesh.2.5D(mesh, main = "Original mesh, 250 nodes")
## Simplify the mesh down to 200 nodes; assume the components of the
## edge cost functions are equally weighted and that the data locations
## coincide with the vertices of the mesh
out <- simplify.mesh.2.5D(mesh, 200)
## Plot the simplified mesh
plot.mesh.2.5D(out$mesh, loc = out$locations, main = "Simplified mesh, 200 nodes")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.