[R] 3D PLOT

Duncan Murdoch murdoch at stats.uwo.ca
Fri Mar 27 15:10:07 CET 2009


On 3/27/2009 9:57 AM, bastian2507hk at freenet.de wrote:
> Hello,
> 
> I would like to create a 3D plot with the following data formats:
> 
> a <- 1:100
> 
> b <- 1:100
> 
> c <- matrix(, 100, 100)
> 
> i.e.
> 
> c(i,j) = f ( a(i) , b(j) )
> 
> each of the 10000 elements i,j in matrix c is a function of a(i) and
> b(j). I would like to have a,b on the x and z axis and c on the y-axis. 
> 
> Does anybody have an idea how to accomplish that? Thanks in advance.


persp, contour, image, wireframe, contourplot, etc. (in graphics and 
lattice); persp3d (in rgl).

Duncan Murdoch




More information about the R-help mailing list