powered by
gg_ordiplot uses ggplot2 to make an ordination plot with group ellipses by default, and optionally hulls and/or spiders. It is patterned after vegan's functions ordiellipse, ordihull, and ordispider and accepts similar parameters.
gg_ordiplot
ggplot2
vegan
ordiellipse
ordihull
ordispider
gg_ordiplot( ord, groups, scaling = 1, choices = c(1, 2), kind = c("sd", "se", "ehull"), conf = NULL, show.groups = "all", ellipse = TRUE, label = FALSE, hull = FALSE, spiders = FALSE, pt.size = 3, plot = TRUE )
Silently returns the plot and data frames used for the plotting.
An ordination object.
A vector of groups.
Scaling for ordination plot.
Axes to be plotted.
Type of ellipses to show ("se", sd", "ehull").
Confidence value for ellipses if "se" or "sd."
Subset of groups to plot.
A logical for plotting ellipses; defaults to TRUE.
A logical for labeling group centroids.
A logical for plotting group hulls.
A logical for plotting group spiders.
Symbol size.
A logical for plotting; defaults to TRUE.
data("dune") data("dune.env") dune.hel <- decostand(dune, method = "hellinger") ord <- rda(dune.hel) gg_ordiplot(ord, groups = dune.env$Management)
Run the code above in your browser using DataLab