Hi, I've been using R since a while now to make 2D histograms. I have some data (appended) that would like to use to make a 3-D plot with x being the first variable in the file, y the second and the height, or z the third variable. How can I do it in R? I would like to have 3-D visualization of this plot. Preferably as a lego plot, that is, a set of stacks that grow with respect to the value of z, which have their delta x and delta y lengths equivalent to the spacings between the values of x and y. Other people also call it a 3-D histogram. Regards, Andre. -- Andre Rabello DOS ANJOS, M.Sc. Signal Processing, Data Analysis and Computing Office: 32-2-A06, Tel: (+ 41 22) 767 5022 Fax: (+ 41 22) 767 8420 CERN - EP/HC Division CH-1211 Geneve 23 - Suisse/Switzerland http://cern.ch/rabello Public GPG key at http://www.keyserver.net -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: request-sizes.txt Url: https://stat.ethz.ch/pipermail/r-help/attachments/20030519/4702f38f/request-sizes.txt
Andre DOS ANJOS wrote:> > Hi, > > I've been using R since a while now to make 2D histograms. I have > some data (appended) that would like to use to make a 3-D plot with x being > the first variable in the file, y the second and the height, or z the third > variable. How can I do it in R? I would like to have 3-D visualization of > this plot. Preferably as a lego plot, that is, a set of stacks that grow > with respect to the value of z, which have their delta x and delta y lengths > equivalent to the spacings between the values of x and y. Other people also > call it a 3-D histogram. > > Regards, Andre.I don't know of such a function. You could try to "hack" you on function around others, like cloud() in package lattice or scatterplot3d() in the identically called package. Neither way will be easy or even very promising. As always, contributions are welcome, but if you are just going to produce a few of these plots, I'd suggest to switch to another software for that purpose. Uwe Ligges
On Mon, 19 May 2003 14:58:07 +0200 (CEST), you wrote:>Hi, > > I've been using R since a while now to make 2D histograms. I have >some data (appended) that would like to use to make a 3-D plot with x being >the first variable in the file, y the second and the height, or z the third >variable. How can I do it in R? I would like to have 3-D visualization of >this plot. Preferably as a lego plot, that is, a set of stacks that grow >with respect to the value of z, which have their delta x and delta y lengths >equivalent to the spacings between the values of x and y. Other people also >call it a 3-D histogram.There are some 3D contributed packages available. Mine (djmrgl) has a function called hist3d() that might do what you want. It's available for Windows only from my web page <http://www.stats.uwo.ca/faculty/murdoch/software> One of my projects for the summer is to merge djmrgl with the other OpenGL project by Daniel Adler; then (and possibly now) a cross-platform 3D histogram will be available. Duncan Murdoch