plot.taxodist_ord: Plot method for taxodist_ord objects

View source: R/utils.R

plot.taxodist_ordR Documentation

Plot method for taxodist_ord objects

Description

Plots the PCoA ordination produced by taxo_ordinate().

Usage

## S3 method for class 'taxodist_ord'
plot(
  x,
  main = "Taxonomic Ordination (PCoA)",
  xlab = "PC1",
  ylab = "PC2",
  labels = if (!is.null(x$points)) rownames(x$points) else NULL,
  ...
)

Arguments

x

A taxodist_ord object from taxo_ordinate().

main

Plot title. Default: "Taxonomic Ordination (PCoA)".

xlab

X-axis label. Default: "PC1".

ylab

Y-axis label. Default: "PC2".

labels

Character vector of labels. Default: rownames of points.

...

Additional arguments passed to graphics::text().

Value

Invisibly returns x. Called for side effects (plotting).

Examples


taxa <- c("Tyrannosaurus", "Velociraptor", "Triceratops", "Brachiosaurus")
ord <- taxo_ordinate(taxa)
plot(ord)


taxodist documentation built on May 6, 2026, 1:06 a.m.