autoplot.envfit | R Documentation |
envfit
objectsProduces a multi-layer ggplot object representing the output of objects produced by isomap
.
## S3 method for class 'envfit'
autoplot(
object,
geom = c("label", "text", "label_repel", "text_repel"),
line.col = "black",
xlab = NULL,
ylab = NULL,
title = NULL,
subtitle = NULL,
caption = NULL,
...
)
object |
an object of class |
geom |
character; which geom to use to label vectors and factor centroids. |
line.col |
colour with which to draw vectors. |
xlab |
character; label for the x-axis. |
ylab |
character; label for the y-axis. |
title |
character; subtitle for the plot. |
subtitle |
character; subtitle for the plot. |
caption |
character; caption for the plot. |
... |
additional arguments passed to |
A ggplot object.
Gavin L. Simpson
data(varespec, varechem)
ord1 <- metaMDS(varespec)
fit1 <- envfit(ord1, varechem, perm = 199)
autoplot(fit1, geom = 'label_repel')
data(dune, dune.env)
ord2 <- cca(dune)
fit2 <- envfit(ord2 ~ Moisture + A1, dune.env, perm = 199)
autoplot(fit2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.