[R] scatter3d with groups

Philippe Thomas philippe.thomas.tcri at gmail.com
Wed Dec 2 22:09:12 CET 2009


Dear R users,

I'm currently visualizing my data using scatter3d from the "Rcmdr" 
package. I have  data points which can be separated in two classes. Data 
points from class 'A' should be colourised red and data points in class 
'B' should be colourised 'blue'. No matter what I try, the data points 
are always blue.

I attached a (very) minimal example to reproduce my problem.

Thanks,
    Philippe

library("Rcmdr")

scatter3d(x=c(1,2), y=c(1,2), z=c(1,2),
          groups=as.factor(c(1,2)),
          point.col=c('red','blue'), surface=F)




More information about the R-help mailing list