View source: R/plotStability.R
| plotStability | R Documentation |
This function takes the output of betaStability() and creates a point plot
using ggplot2.
plotStability(stability_result, sitenames = NULL)
stability_result |
The output from |
sitenames |
Optional vector of site names. If not provided, uses rownames from stability_result. Users shall make sure the provided sitenames correspond to the rownames of stability_result in the correct order. |
A ggplot2 plot object.
library(vegan)
data(varespec)
data(varechem)
results <- betaStability(
comtable = varespec,
envmeta = varechem, method = c("linearPred", "mlPred")
)
plotStability(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.