contour3d: Superimpose contour lines on a 3D plot

View source: R/utils3d.R

contour3dR 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 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 July 9, 2023, 6:33 p.m.

Related to contour3d in emdbook...