[R-sig-eco] Sites names with spaces in ordiplot

Jari Oksanen jari.oksanen at oulu.fi
Fri Apr 1 06:01:11 CEST 2011


On 31/03/11 23:18 PM, "Manuel Spínola" <mspinola10 at gmail.com> wrote:

> Dear list members,
> 
> I would like to include sites names with blank spaces in an ordiplot for
> an nmds (in vegan).
> How I do that?
> 
Manuel,

Like Gav wrote, R indeed is a bit patronizing and doesn't let you to use
dimension names with blank. R only wants to protect you from trouble.
However, vegan lets you use any names in text() function for metaMDS: just
list those names as a vector of quoted text in 'labels' argument to
text.metaMDS(). The names given in 'labels' can have blanks, or even be al
blanks as long as they are quoted. The length of the 'labels' must match the
number of items plotted.

All vegan text() functions for ordination plots should have the 'labels'
argument. I cannot guarantee that all of them have, but you can always
report missing cases to us. The text() for metaMDS() certainly has 'labels'
as you can see if you read the help page ?metaMDS (which may not be a bad
idea).

Cheers, Jari Oksanen



More information about the R-sig-ecology mailing list