contour3d: Superimpose contour lines on a 3D plot

Description Usage Arguments Value Note Note Author(s)

View source: R/utils3d.R

Description

Plot contour lines computed from data in 3D, or add them to an existing 3D (RGL) surface

Usage

1
contour3d(x, y, z, contourArgs=NULL, ...)

Arguments

x

numeric vector of x values (as in contour), or a list with components x, y and z

y

numeric vector of y values (as in contour)

z

numeric z matrix (as in contour)

contourArgs

list of arguments to contourLines

...

other arguments to lines3d

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


emdbook documentation built on May 2, 2019, 9:41 a.m.