View source: R/dissimilarity_to_distance.R
dissimilarity_to_distance_importance_plot | R Documentation |
Display species importance plot based on a weighted Euclidean distance transformation of dissimilarities.
dissimilarity_to_distance_importance_plot(
x,
scaled_weights = TRUE,
mark_removed = TRUE
)
x |
Result of |
scaled_weights |
Logical; if TRUE, scaled weights will be plotted |
mark_removed |
Logical; if TRUE, species that were removed from distance will be highlighted with a separate symbol on a plot |
Species importance measures the contribution of individual species to the overall dissimilarity between the samples.
ggplot-object.
dissimilarity_to_distance
library(vegan); library(smacof)
data(varespec)
# Estimate weighted Euclidean distance
bc_to_eucl <- dissimilarity_to_distance(varespec, dist_type = "bray", drop_species = T, importance_percentile = 0.05, show_plot = F)
# Plot species weigths
dissimilarity_to_distance_importance_plot(bc_to_eucl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.