plot: Plot a mesh in a 3D perspective.

Description Usage Arguments See Also Examples

Description

Plot a 2.5D surface mesh augmented with associated data locations. The package plot3D is used.

Usage

1
2
## S3 method for class 'mesh.2.5D'
plot(x, loc = NULL, phi = 40, theta = 40, ...)

Arguments

x

An object of class mesh.2.5D, representing the mesh to plot.

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.

See Also

simplify.mesh.2.5D

Examples

 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")

meshsimp documentation built on June 20, 2017, 9:05 a.m.