envfit
objectsautoplot.envfit.Rd
Produces a multi-layer ggplot object representing the output of objects produced by isomap
.
# S3 method for envfit
autoplot(
object,
geom = c("label", "text", "label_repel", "text_repel"),
line.col = "black",
xlab = NULL,
ylab = NULL,
title = NULL,
subtitle = NULL,
caption = NULL,
...
)
an object of class "envfit"
, the result of a call to envfit
.
character; which geom to use to label vectors and factor centroids.
colour with which to draw vectors.
character; label for the x-axis.
character; label for the y-axis.
character; subtitle for the plot.
character; subtitle for the plot.
character; caption for the plot.
additional arguments passed to fortify
.
A ggplot object.
data(varespec, varechem)
ord1 <- metaMDS(varespec)
#> Square root transformation
#> Wisconsin double standardization
#> Run 0 stress 0.1843196
#> Run 1 stress 0.2126568
#> Run 2 stress 0.2028828
#> Run 3 stress 0.213094
#> Run 4 stress 0.2260499
#> Run 5 stress 0.18458
#> ... Procrustes: rmse 0.04936257 max resid 0.1575544
#> Run 6 stress 0.1976151
#> Run 7 stress 0.210961
#> Run 8 stress 0.2124989
#> Run 9 stress 0.2307691
#> Run 10 stress 0.1948413
#> Run 11 stress 0.2200287
#> Run 12 stress 0.195049
#> Run 13 stress 0.2124988
#> Run 14 stress 0.18458
#> ... Procrustes: rmse 0.04937173 max resid 0.1576046
#> Run 15 stress 0.2425228
#> Run 16 stress 0.2353272
#> Run 17 stress 0.2028828
#> Run 18 stress 0.1955836
#> Run 19 stress 0.2095882
#> Run 20 stress 0.2077639
#> *** Best solution was not repeated -- monoMDS stopping criteria:
#> 18: stress ratio > sratmax
#> 2: scale factor of the gradient < sfgrmin
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)