Skip to content
Prev 4003 / 7419 Next

modify plot of metaMDS (package vegan)

Hai Elaine,

You can add the sites and species separately to your plot.


So first create an empty plot:

require(vegan)
data(dune)
mds <- metaMDS(dune)
plot(mds, type = 'n')



And then add the information you want (points, text, etc...):

# species as symbols
points(mds, display = 'species', pch = '+', cex = 0.6)

# sites as text
text(mds, display = 'sites')


See also Gavin Simpsons series on ordination plots:
http://www.fromthebottomoftheheap.net/2013/01/12/decluttering-ordination-plots-in-vegan-part-1-ordilabel/


Cheers,

Eduard
On 08/02/2013 08:46 AM, Elaine Kuo wrote: