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.nabble.com/colored-3d-scatter-plot-tp15822670p15835650.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.