View source: R/dissimilarity-based.R
plot_ordination | R Documentation |
Used to generate a plot from the output of
calc_ordination()
plot_ordination( input, ordination_axes, color_cat, shape_cat, hulls = FALSE, ... )
input |
The input dataset as loaded by |
ordination_axes |
The output of |
color_cat |
The metadata map header used to color points. |
shape_cat |
The metadata map header used for points' shapes (optional). |
hulls |
Whether or not to include an outline around sample categories. |
... |
Additional arguments passed to ggplot2's |
fvrar = single_rarefy(fruits_veggies, 100) ord = calc_ordination(calc_dm(fvrar$data_loaded), 'nmds') plot_ordination(fvrar, ord, 'Sample_type', 'Farm_type', hulls = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.