contour3d | R Documentation |
Plot contour lines computed from data in 3D, or add them to an existing 3D (RGL) surface
contour3d(x, y, z, contourArgs=NULL, ...)
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 |
Returns a list of contour lines (as in contourLines
),
invisibly.
You have to install the rgl
package before you
can use this function.
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.
Ben Bolker
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.