powered by
Makes a simple ordination plot of site with the symbol size scaled to an environmental variable. Result is similar to that of BiodiversityR's ordibubble function.
gg_ordibubble( ord, env.var, groups = NA, var.label = "Level", choices = c(1, 2), plot = TRUE )
Silently returns the plot and data frames used for the plotting.
An ordination object
An environmental variable.
A vector of groups (optional).
Label for the legend; default is "Level."
Axes to be plotted.
A logical for plotting; defaults to TRUE.
data(dune) data(dune.env) dune.bray <- vegdist(dune, method = "bray") ord <- cmdscale(dune.bray, k=(nrow(dune)-1), eig=TRUE, add=TRUE) gg_ordibubble(ord, env.var=dune.env$A1, var.label="A1")
Run the code above in your browser using DataLab