[R] 3D or 4D plot

Duncan Murdoch murdoch at stats.uwo.ca
Fri Feb 20 16:56:23 CET 2009

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

plot3d(x, y, z, col=color)

(assuming you also have a variable indicating the color to plot).

Duncan Murdoch

More information about the R-help mailing list