Re: [R] Plotting separate populations in scatterplot3d

2008-05-06 Thread Yasir Kaheil
#Install library rgl #here is the function which you need to run first: rgl.plot3d<-function(z, x, y, cols="red",axes=T,new=T) {xr<-range(x) x01<-(x-xr[1])/(xr[2]-xr[1]) yr<-range(y) y01<-(y-yr[1])/(yr[2]-yr[1]) zr<-range(z) z01<-(z-zr[1])/(zr[2]-zr[1]) if(new) rgl.clear() if(axes)

[R] Plotting separate populations in scatterplot3d

2008-05-06 Thread Eleca Dunham
Hi, I'm having trouble plotting populations as separate colors and points in the 3d scatterplot package. I have a column with 4 different population names and 3 columns with my data. I want to plot each population with a different color and pch. In addition, I want to use the type="h" in my plotti