plot.phylospatial {phylospatial}R 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")

[Package phylospatial version 1.1.1 Index]