autoplot.vegan_pco: ggplot-based plot for objects of class '"vegan_pco"'

autoplot.vegan_pcoR Documentation

ggplot-based plot for objects of class "vegan_pco"

Description

Produces a multi-layer ggplot object representing the output of objects produced by vegan::pco().

Usage

## S3 method for class 'vegan_pco'
autoplot(
  object,
  geom = "point",
  legend.position = "right",
  title = NULL,
  subtitle = NULL,
  caption = NULL,
  ylab = NULL,
  xlab = NULL,
  ...
)

Arguments

object

an object of class "vegan_pco", the result of a call to vegan::pco().

geom

character; which geom to use for the site (sample) scores. One of "point", or "text".

legend.position

character or two-element numeric vector; where to position the legend. See ggplot2::theme() for details. Use "none" to not draw the legend.

title

character; subtitle for the plot.

subtitle

character; subtitle for the plot.

caption

character; caption for the plot.

ylab

character; label for the y-axis.

xlab

character; label for the x-axis.

...

Additional arguments passed to the fortify() method.

Details

TODO

Value

Returns a ggplot object.

Author(s)

Gavin L. Simpson

Examples


library("vegan")

data(dune)

sol <- pco(dune)
autoplot(sol)

ggvegan documentation built on Feb. 28, 2026, 1:07 a.m.