Re: [R] colored 3d scatter plot

2008-03-06 Thread SNN
Thank you all for your help. SNN wrote: > > > > Hi All, > > I have data for two groups, group with 100 points and group B with 15 > points. i needed plot these two groups in one scatter plot, each group > with a different color. I tried > > plot3d(data, col = c("red", "blue")[c(rep(1, 100)

Re: [R] colored 3d scatter plot

2008-03-04 Thread Duncan Murdoch
On 04/03/2008 9:54 PM, Jim Lemon wrote: > SNN wrote: >> I tried >> >> scatterplot3d(data, color = rep(c("red", "blue"), c(100, 15)), pch=16) and I >> am getting the following error message, >> >> >> Error in plot.xy(xy.coords(x, y), type = type, ...) : >> invalid color name >> >> Does any

Re: [R] colored 3d scatter plot

2008-03-04 Thread Jim Lemon
SNN wrote: > > I tried > > scatterplot3d(data, color = rep(c("red", "blue"), c(100, 15)), pch=16) and I > am getting the following error message, > > > Error in plot.xy(xy.coords(x, y), type = type, ...) : > invalid color name > > Does anyone know what he problem is? Hi Nancy, When y

Re: [R] colored 3d scatter plot

2008-03-04 Thread SNN
I tried scatterplot3d(data, color = rep(c("red", "blue"), c(100, 15)), pch=16) and I am getting the following error message, Error in plot.xy(xy.coords(x, y), type = type, ...) : invalid color name Does anyone know what he problem is? -- View this message in context: http://www.na

Re: [R] colored 3d scatter plot

2008-03-04 Thread Uwe Ligges
SNN wrote: > > > Hi All, > > I have data for two groups, group with 100 points and group B with 15 > points. i needed plot these two groups in one scatter plot, each group with > a different color. I tried > > plot3d(data, col = c("red", "blue")[c(rep(1, 100), rep(2, 15))], pch=20) . > this w

[R] colored 3d scatter plot

2008-03-04 Thread SNN
Hi All, I have data for two groups, group with 100 points and group B with 15 points. i needed plot these two groups in one scatter plot, each group with a different color. I tried plot3d(data, col = c("red", "blue")[c(rep(1, 100), rep(2, 15))], pch=20) . this works but the graph does not look