Skip to content

Sites names with spaces in ordiplot

2 messages · Gavin Simpson

#
On Thu, 2011-03-31 at 14:18 -0600, Manuel Sp?nola wrote:
Did you even try it? It works - we and R don't give two hoots what the
labels are, just make sure the row and col names of the dataframe/matrix
are what you want to appear on the plot.

Here is an (not exactly inspiring) example:

require(vegan)
set.seed(1)
dat <- data.frame(matrix(runif(100), ncol = 10))
names(dat) <- paste("Spp", 1:10, sep = "")
rownames(dat) <- paste("Site", 1:10)

head(dat)

mod <- metaMDS(dat)
plot(mod, type = "text")

HTH

G

  
    
#
On Fri, 2011-04-01 at 00:46 +0100, Gavin Simpson wrote:
OK, the usual constraints on row and column names for matrices and data
frames apply, but other than that, we and R don't give two hoots.

G