Displaying 1 result from an estimated 1 matches for "mcols1".
Did you mean:
mcols
2013 Mar 28
1
scatterplot3d with densCols ?
...o make a 3D plot using densCols. The documentation for
densCols doesn't look like it'll work for 3D. For example:
-----------------------------------------
library(scatterplot3d)
v1 <- rnorm(10000)
v2 <- rnorm(10000)
v3 <- rnorm(10000)
## 2D with denscols
mat1 <- cbind(v1,v2)
mcols1 <- densCols(mat1)
plot(mat1,col=mcols1)
mat <- cbind(v1,v2,v3)
mcols <- densCols(mat) ## No go?
## 3D version with no densCols parameter
scatterplot3d(mat,pch=16)
## gives error
scatterplot3d(mat,col=mcols,pch=16)
-----------------------------------------
Is there any workaround/modif...