Message-ID: <499ED2A7.4030202@stats.uwo.ca>
Date: 2009-02-20T15:56:23Z
From: Duncan Murdoch
Subject: 3D or 4D plot
In-Reply-To: <6d1cbcaf0902200750sc154e45oea37cf31bde805b2@mail.gmail.com>
On 2/20/2009 10:50 AM, kapo coulibaly wrote:
> I have data on a regular grid in the format: x y z data. I would like to
> be able to plot them in 3d kind of like a volume or a mesh with colors. Is
> that possible in R and how?
There are lots of ways, depending on what you want the plot to look
like. One is
library(rgl)
plot3d(x, y, z, col=color)
(assuming you also have a variable indicating the color to plot).
Duncan Murdoch