0

"Betadisper" calculates the Non-euclidean distances between objects and their group centroids by reducing the original distances to principal coordinates. It is a multivariate analogue of Levene's test for homogeneity of variances. http://cc.oulu.fi/~jarioksa/softhelp/vegan/html/betadisper.html

My question, I would like to extract the values for the distance of each sample point(object) to the centroid in a list, which would be equivalent to the data used for the boxplot available in Betadisper. How could I do that?

x= betadisper(d, group, type = c("centroid”))
boxplot(x)

Thanks!

IRich
  • 27
  • 2
  • 7

1 Answers1

4

See str(x) and you will find it:

x$distances
with(x, boxplot(distances~group))

hth

Gavin Simpson
  • 170,508
  • 25
  • 396
  • 453
droopy
  • 2,788
  • 1
  • 14
  • 12