View source: R/plotbetadisper.R
plotbetadisper | R Documentation |
Function to create PERMDISP graphs using ggplot2. The function has one argument that you to use to make graphs of ordination type.
plotbetadisper(x)
x |
One object of class betadisper. |
The function will return a ordinaition of ggplot class.
Rafael Costa Bastos
require(vegan)
require(ggplot2)
require(ggConvexHull)
data(varespec)
dist <- vegdist(varespec)
gp <- factor(c(rep(1,16), rep(2,8)), labels = c("grazed","ungrazed"))
mod <- betadisper(dist, gp)
plotbetadisper(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.