Skip to content
Back to formatted view

Raw Message

Message-ID: <mpdicvc0kfk4ao6i840stkvpb7mnj5boqf@4ax.com>
Date: 2003-05-19T20:20:05Z
From: Duncan Murdoch
Subject: R doesn't support 3D histograms?
In-Reply-To: <Pine.LNX.4.44.0305191452450.18816-200000@pcatd37.cern.ch>

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