Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mu-comparison, MLRA-comparison: ordination upgrades #101

Open
dylanbeaudette opened this issue Sep 4, 2019 · 0 comments
Open

mu-comparison, MLRA-comparison: ordination upgrades #101

dylanbeaudette opened this issue Sep 4, 2019 · 0 comments
Assignees

Comments

@dylanbeaudette
Copy link
Member

Currently, vegan::betadisper is used for the ordination, via principal coordinates. The figure is hand-made via scores and approximate KDE-estimated probability contours.

image

The default plot method for betadisper is interesting, and likely simpler to interpret when there are many groups / lots of overlap. The ellipse can be adjusted to any approximate probability contour.

image

par(mar=c(1,1,3,1))
plot(d.betadisper, hull=FALSE, ellipse=TRUE, col=cols)

vegan::metaMDS provides an alternative ordination, with additional functionality to overlay environmental variables or rotation of axes.

image

m <- metaMDS(d.sub[, d.mu.wide.vars], distance = 'gower')

par(mar=c(1,1,3,1))
o <- ordiplot(m, type='n', axes=FALSE)
points(o, 'sites', cex=1, col=cols[as.numeric(d.sub$.id)], pch=16)

ordisurf(m, d.sub$`Effective Precipitation (mm)`, add=TRUE, col='black')

# location / labeling of centroids must be done manually (?)

box()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant