Re: [R] [RGL] Need help to modify current plot

2010-05-18 Thread Megh Dal
] [RGL] Need help to modify current plot To: "Megh Dal" Cc: r-h...@stat.math.ethz.ch Date: Tuesday, May 18, 2010, 3:51 PM Megh Dal wrote: > Dear folks, I have created a plot on RGL device : >  x = 1:6 > y = seq(-12, 5, by=1) > z = matrix(0, length(y), length(x)) > z[13,3

Re: [R] [RGL] Need help to modify current plot

2010-05-18 Thread Duncan Murdoch
e, 5/18/10, Duncan Murdoch wrote: From: Duncan Murdoch Subject: Re: [R] [RGL] Need help to modify current plot To: "Megh Dal" Cc: r-h...@stat.math.ethz.ch Date: Tuesday, May 18, 2010, 3:51 PM Megh Dal wrote: Dear folks, I have created a plot on RGL device : x = 1:6 y = seq(-12, 5

Re: [R] [RGL] Need help to modify current plot

2010-05-18 Thread Duncan Murdoch
Megh Dal wrote: Dear folks, I have created a plot on RGL device : x = 1:6 y = seq(-12, 5, by=1) z = matrix(0, length(y), length(x)) z[13,3] = 1; z[13,4] = 1.011765 surface3d(x, y, t(z), col=rainbow(1000)) grid3d(c("x-", "y-", "z")) Now I want to draw 2 lines along x=3 & x=4, over the surface

[R] [RGL] Need help to modify current plot

2010-05-18 Thread Megh Dal
Dear folks, I have created a plot on RGL device :   x = 1:6 y = seq(-12, 5, by=1) z = matrix(0, length(y), length(x)) z[13,3] = 1; z[13,4] = 1.011765 surface3d(x, y, t(z), col=rainbow(1000)) grid3d(c("x-", "y-", "z"))   Now I want to draw 2 lines along x=3 & x=4, over the surface (with different c