plot.phylospatial: Plot a 'phylospatial' object

View source: R/phylospatial-methods.R

plot.phylospatialR Documentation

Plot a phylospatial object

Description

Plot a phylospatial object

Usage

## S3 method for class 'phylospatial'
plot(x, y = c("tree", "comm"), max_taxa = 12, ...)

Arguments

x

phylospatial object

y

Either "tree" or "comm", indicating which component to plot.

max_taxa

Integer giving the maximum number of taxon ranges to plot if y = "tree".

...

Additional arguments passed to plotting methods, depending on y and the class of x$spatial. For y = "tree", see plot.phylo; for y = "comm", see plot or plot.sf.

Value

A plot of the tree or community data.

Examples

ps <- ps_simulate()
plot(ps, "tree")
plot(ps, "comm")

phylospatial documentation built on April 12, 2025, 1:35 a.m.