[R] Draw level lines on the surface of a bivariate function

Deepayan Sarkar deepayan.sarkar at gmail.com
Sat Mar 11 19:03:13 CET 2006

On 3/11/06, Cuvelier Etienne <ecu at info.fundp.ac.be> wrote:
> Hello,
> Is it possible to draw level lines  on the surface of a bivariate function?
> In the following example, to draw surface and levels lines for a
> multivariate normal law,
> I use persp, trans3d, contourLines and lines,
> but if  the lines are correctly drawn, some parts of them are, of
> course, visible
> even if they are drawn on a non visible "face".
> Any suggestion to avoid this problem ?

Use a visualization system designed for 3-D, like OpenGL, which has an
R interface in the 'rgl' package.


More information about the R-help mailing list