Re: [R] How to split data for NMDS plots

2010-04-04 Thread Michael Denslow
Hi Trey, On Sun, Apr 4, 2010 at 4:28 PM, Trey wrote: > > In essence, here is what I'm after:  When I plot the NMDS ordination, I get a > cloud of points.  To make sense of this cloud I need to differentiate the > cloud into control and infested sites to see if there is any meaningful > separation

Re: [R] How to split data for NMDS plots

2010-04-04 Thread Trey
In essence, here is what I'm after: When I plot the NMDS ordination, I get a cloud of points. To make sense of this cloud I need to differentiate the cloud into control and infested sites to see if there is any meaningful separation. The first 5 plots are "infested", and the second 5 plots are

Re: [R] How to split data for NMDS plots

2010-04-04 Thread David Winsemius
On Apr 4, 2010, at 3:50 PM, Trey wrote: I have a data matrix that contains site data for paired infested and control plots. For example: ab ac ad af ag ah 1 .024 x x x x x 2 .9 x x x x x 3 1.5x x x x x 4 2.3x x x x x

Re: [R] How to split data for NMDS plots

2010-04-04 Thread stephen sefick
I don't know if I understand exactly what you would like to be able to do. But this is how I would go about it if I understand you correctly. I would make a data frame out of the points and the code a dummy variable for the control sites in another column. The I would use ggplot2 to use the dumm

Re: [R] How to split data for NMDS plots

2010-04-04 Thread Trey
Here is the code I have used to this point: > trba<-read.table("c:\\Rdata\\NMDS\\trba.txt",header=T,row.names=1) > attach(trba) > trba >bat<-metaMDS(trba) plot(bat, display = c("sites")) Given this simple code and my previous example of the matrix, how would I go about splitting the data out

[R] How to split data for NMDS plots

2010-04-04 Thread Trey
I have a data matrix that contains site data for paired infested and control plots. For example: ab ac ad af ag ah 1 .024 x x x x x 2 .9 x x x x x 3 1.5x x x x x 4 2.3x x x x x 5 1.0x x x x x 1c.75 x