contour3d {emdbook} | R Documentation |
Superimpose contour lines on a 3D plot
Description
Plot contour lines computed from data in 3D, or add them to an existing 3D (RGL) surface
Usage
contour3d(x, y, z, contourArgs=NULL, ...)
Arguments
x |
numeric vector of x values (as in |
y |
numeric vector of y values (as in |
z |
numeric z matrix (as in |
contourArgs |
list of arguments to |
... |
other arguments to |
Value
Returns a list of contour lines (as in contourLines
),
invisibly.
Note
You have to install the rgl
package before you
can use this function.
Note
If you are superimposing the contour lines on a surface,
it helps to draw the surface with some level of transparency
(alpha
parameter: see material3d
) so
the contour lines are not obscured by the surface.
Author(s)
Ben Bolker
[Package emdbook version 1.3.13 Index]