[R] Plot 3d [and [R] About plot 3d]

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Mar 18 19:21:53 CET 2002

Cezar Augusto de Freitas Anselmo wrote:
> There exists a plot 3d functions (or similar) in R?

and 49 minutes later:

> Im looking for functions that draw 3d graphics. Is it possible in R?

Well, at first it's not neccessary to ask almost the same question two
times, particularly if it is not very specific in both cases.

There are several options, here is what comes to my mind:

 - persp() "This function draws perspective plots of surfaces over the
x–y plane."

 - image(): "Creates a grid of colored or gray-scale rectangles with
colors corresponding to the values in z. This can be used to display
three-dimensional or spatial data aka ``images''."

 - several functions() in package rgl (only for windows, available at

 - scatterplot3d() in package scatterplot3d (available at CRAN) for
plotting 3D point clouds.

As you can see, it is hard to help if your question is not very specific
(what kind of 3D graphics as we can imagine several different kinds,
your OS, version of R, etc).
There were many questions regarding 3D graphics in the last two years on
R-help. Searching the archives could have been successful.

Uwe Ligges
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list