[R] colored 3d scatter plot

SNN s.nancy1 at yahoo.com
Fri Mar 7 00:14:56 CET 2008


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), rep(2, 15))], pch=20) .
> this works but the graph does not look good. 
> 
> the other option that I tried is 
> 
> scatterplot3d(data, type="p", highlight.3d=T, pch=16) where the graph
> looks much nicer but i do not know how to have each group with a different
> color. 
> 
> Does anyone know how to do it? 
> Thanks
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/colored-3d-scatter-plot-tp15822670p15885386.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list