Re: [R] 3D or 4D plot

2009-03-05 Thread Mike Prager
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? > I've posted code for a 4-D plot here: http://addictedtor.free.fr/graphiques/RGraphGall

Re: [R] 3D or 4D plot

2009-02-24 Thread Duncan Murdoch
One more followup on this: I just added a function shapelist3d() to rgl (so far only on R-forge, not CRAN) that automates a lot of this. To get the plot as below, the following code works: x <- rep(1:5, each=25) y <- rep(rep(1:5, each=5), 5) z <- rep(1:5, 25) shapelist3d(cube3d(), x,y,z, size

Re: [R] 3D or 4D plot

2009-02-20 Thread Tony Breyal
Wow, i had no idea R was capable of producing graphics like that, smegging awesome! On 20 Feb, 19:28, Duncan Murdoch wrote: > On 2/20/2009 1:55 PM, Duncan Murdoch wrote: > > > > > On 2/20/2009 1:46 PM, kapo coulibaly wrote: > >> Ideally I would want it to look like a rubik cube with each little c

Re: [R] 3D or 4D plot

2009-02-20 Thread Duncan Murdoch
On 2/20/2009 1:55 PM, Duncan Murdoch wrote: On 2/20/2009 1:46 PM, kapo coulibaly wrote: Ideally I would want it to look like a rubik cube with each little cube color coded based on the fourth column (data column). Your suggestion might work if I could color code based on data in the fourth colum

Re: [R] 3D or 4D plot

2009-02-20 Thread Duncan Murdoch
On 2/20/2009 1:46 PM, kapo coulibaly wrote: Ideally I would want it to look like a rubik cube with each little cube color coded based on the fourth column (data column). Your suggestion might work if I could color code based on data in the fourth column. Thanks There's no primitive "cube" symbo

Re: [R] 3D or 4D plot

2009-02-20 Thread kapo coulibaly
Ideally I would want it to look like a rubik cube with each little cube color coded based on the fourth column (data column). Your suggestion might work if I could color code based on data in the fourth column. Thanks On Fri, Feb 20, 2009 at 10:56 AM, Duncan Murdoch wrote: > On 2/20/2009 10:50 AM

Re: [R] 3D or 4D plot

2009-02-20 Thread Huang, Guo-Hao
You can try rgl package. It utilizes OpenGL library. Or, check the CRAN to find other gtk based package - Original Message - From: "kapo coulibaly" To: Sent: Friday, February 20, 2009 11:50 PM Subject: [R] 3D or 4D plot I have data on a regular grid in the format: x y z data. I wou

Re: [R] 3D or 4D plot

2009-02-20 Thread Duncan Murdoch
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 lik