Re: [R] scatter3D and colours

2016-07-14 Thread Jorge I Velez
Thank you very much, Sarah, for your help. The colvar argument was certainly what I needed. I will follow your suggestion. Cheers, Jorge.- On Thu, Jul 14, 2016 at 1:29 PM, Sarah Goslee wrote: > I assume you want some variant of: > with(d0, scatter3D(X, Z, Y, bty = "b2", col = cols, colvar =

Re: [R] scatter3D and colours

2016-07-14 Thread Sarah Goslee
I assume you want some variant of: with(d0, scatter3D(X, Z, Y, bty = "b2", col = cols, colvar = c(1, 2, 3), pch = 20, cex = 4, ticktype = "detailed", colkey = FALSE, phi = 20, theta = -140, zlim = c(-14, 14), xlim = c(-14, 14), ylim = c(-14, 14), xlab = "X", ylab = "Z", zlab = "Y", CI =

[R] scatter3D and colours

2016-07-14 Thread Jorge I Velez
Dear R-help, I am using the plot3D package to produce 3D spheres along with 95% CIs distinguishing each sphere with a predefined colour (see the reproducible example at the end). I have been successful in producing a similar plot using a different data set (kindly see https://www.dropbox.com/s/sn