Skip to content

NMDS dot number=site number (vegan)

2 messages · Elaine Kuo, Gavin Simpson

2 days later
#
Read `?text.metaMDS` which has the details of the arguments accepted
by this `text()` method. Specially it has argument `labels` which
allows you to specify the labels used for the "points". The ordering
of the scores (i.e. the rows of the score matrix that gives the
coordinates in ordination space, the coordinates of the pints on the
plot) is as per the ordering in the original data. If `labels` is not
supplied then the `text()` method will use the `rownames()` of the
data matrix.

Because the plotted scores are in data order, it is very simple to
request the site number (i.e. row number) be used for plotting:

    text(NMDS, display = 'sites', labels = seq_len(nrow(dune)))

Or alternatives, set the rownames to something you want, prior to
fitting the MDS

    rownames(dune) <- c("blah","foo","bar", ....)

or in your case

    rownames(dune) <- seq_len(nrow(dune))

then refit your ordination.

HTH

G
On 7 September 2013 07:19, Elaine Kuo <elaine.kuo.tw at gmail.com> wrote: