[R] How to split data for NMDS plots
stephen sefick
ssefick at gmail.com
Sun Apr 4 22:15:39 CEST 2010
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 dummy variable a shape, color, or size...
HTH
Stephen
On Sun, Apr 4, 2010 at 3:00 PM, Trey <trey3_79 at hotmail.com> wrote:
>
> 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 for the plot?
> --
> View this message in context: http://n4.nabble.com/How-to-split-data-for-NMDS-plots-tp1751101p1751104.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>
--
Stephen Sefick
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods. We are mammals, and have not exhausted the
annoying little problems of being mammals.
-K. Mullis
More information about the R-help
mailing list