[R-sig-eco] returning site and species coordinates in NMDS using vegan

Gavin Simpson gavin.simpson at ucl.ac.uk
Wed Sep 21 13:03:32 CEST 2011


On Tue, 2011-09-20 at 18:17 -0300, Victor L. Landeiro wrote:
> Hi Lauren,
> 
> site.scores<-scores(mds.result, display="sites")
> species.scores<-scores(mds.result, display="species")

I wanted to write that you can do this in a single call; but you can't.
You should be able to, so I'll take a look at scores.metaMDS and improve
it to work more like scores.cca for example.

G

> Note that your result from metaMDS function should be based on "raw data"
> not on "distance matrices". If your input to metaMDS function is a distance
> matrix you will not be able to recover species scores.
> 
> victor
> 
> 
> 
> On Tue, Sep 20, 2011 at 5:54 PM, L Quinn <lquinn at hotmail.com> wrote:
> 
> >
> > Hi,
> > I am running a simple NMDS as outlined by Jari Oksanen in vegantutor, e.g.
> > spp.dist<-vegdist(spp)spp.mds<-metaMDS(spp,trace=FALSE)spp.mds
> > I am able to plot the results (species nicely overlaying sites) using
> > plot(spp.mds,display="species",type="t",family="sans",font=2,xlim=c(-0.4,0.4),ylim=c(-0.4,0.4))#
> > and points(env.mds,display="sites")
> > However, try as I might, I am not able to make this figure look pretty
> > enough in R to satisfy journal editors/reviewers. I want to redraw the
> > results in Excel, but I don't know how to extract species and site
> > coordinates from spp.mds. I see that I can do this using isoMDS in MASS, but
> > I'd prefer to use vegan. Perhaps I'm missing something obvious, but I
> > haven't been able to find it anywhere so far. How does one go about
> > extracting those coordinates?
> > Thanks in advance.
> > Lauren
> >
> >        [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-ecology mailing list
> > R-sig-ecology at r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
> >
> 
> 
> 

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-sig-ecology mailing list