Skip to content

Plotting adonis (vegan) results

6 messages · Gavin Simpson, Vít Syrovátka, Jonas.Persson at niva.no

#
Dear Jonas,
I've just had a look into the paper (Friberg et al (2013)), but there 
is no information on what kind of ordination they used (at least it is 
very well hidden). Hard to believe, maybe I am wrong, but can't find 
anything about that. And they used different ordination techniques to 
visualise the groups with regard to the results of 'adonis()' and 
'betadisper()' - compare Fig.1 and Fig. 2. Maybe that brought the 
confusion.

The thing is that 'adonis()' tells you, whether the groups consistently 
differ in their community composition, and then it's up to you to chose 
an ordination technique to visualize the groups. Probably that would be 
an ordination that approximates the same distances used in 'adonis()' 
(or 'betadisper()'). The plot method of 'betadisper()' uses Principal 
Coordinate Analysis (PCoA), which you can use to visualize the results 
of 'adonis()' as well (as Gavin and Jari pointed out) or do it by your 
own or choose another ordination technique.

A small example with PCoA:

## taken from ?betadisper:
library(vegan)
data(varespec)

# create the dist object
dis <- vegdist(varespec)

# create grouping variable; First 16 sites grazed, remaining 8 sites 
ungrazed
groups <- factor(c(rep(1,16), rep(2,8)), labels = 
c("grazed","ungrazed"))

# Calculate multivariate dispersions
mod <- betadisper(dis, groups)

# Plot PCoA ordination with differentiated groups = visualize the 
dispersions of groups in 2D ordination space
plot(mod)

## now create the same plot on my own (though with different graphic 
parameters)
# calculate the PCoA ordination sites' scores
pcoa<- cmdscale(dis)
# plot them with different symbols for groups
plot(pcoa, asp=1)
# and add spiders and hulls
ordispider(pcoa, groups)
ordihull(pcoa, groups)

If I am wrong in any point, will be glad if someone corrects me.
Cheers,
Vit


Dne 2013-08-09 19:25, Gavin Simpson napsal:
#
Thank you, Gavin.
Yes, I meant the methods you listed, but fully agree that PCoA will be 
the most reasonable method with respect to what adonis or betadisper are 
doing.
Vit

Dne 2013-08-10 15:53, Gavin Simpson napsal:
1 day later