[R] cloud() 3D scatter plot

From: Michelle DePrenger-Levin <DePrengM_at_botanicgardens.org>
Date: Sat 03 Dec 2005 - 10:02:55 EST


I am creating a 3D scatter plot with the cloud function. I ask it to group my rows by a "Treatment" column (there are 4 different groups). I need to know which points in the plot correspond to which rows (which treatment). By default it assigns pchs and cols to each group. When I try to define the colors or point shapes it seems to use the first color and pch for both the first and last group. I've tried to add:

col = c("blue","red","orange","green"), pch = c(20,20,22,22),

after the "cex" line.

The only think that seems to work and keep all four groups separate is making

cex = c(1,2,3,4),

I cannot figure out what it combines the first and last of my groups with the same point character and color. Any suggestions?

(Part of my code)
print(cloud(RMMdistMETAc3$points[,1] ~ RMMdistMETAc3$points[,2] * RMMdistMETAc3$points[,3],

            data = RMM,
            cex = 0.8,           
            groups = Treatment, 
            screen = list(z = 10, x = -40, y = 3),
            ) .....

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Dec 03 10:05:20 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:28 EST