View source: R/plotCorrelation.R
| plotCorrelation | R Documentation |
This function takes a result dataframe from betaStability() and creates a
faceted scatter plot matrix to visualize correlations between different
stability quantification methods.
plotCorrelation(data, method = "spearman")
data |
A dataframe containing stability results from |
method |
Correlation method to use. Default is "spearman". Other options include "pearson" and "kendall". |
A ggplot2 plot object showing pairwise correlations between columns.
library(vegan)
library(ggplot2)
data(varespec)
data(varechem)
results <- betaStability(
comtable = varespec,
envmeta = varechem,
method = c("linearPred", "mlPred", "glmPred")
)
plotCorrelation(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.