A treedata object. Both phylogram and
ultrametric trees are supported.
consensus
Logical. Should the majority-vote consensus to be estimated?
n_match
An Integer. If consensus = TRUE, threshold for majority-vote
calculations. See delim_consensus for details.
delim_order
A character vector of species delimitation names ordered by user.
Default to NULL.
tbl_labs
A tbl_df of customized labels for tree plotting. The
first column must match tip labels of the tr object, while the second column
should have customized labels.
col_vec
A color vector for species delimitation partitions. See
delim_brewer for customized color palette options.
hexpand
Numeric. Expand xlim of tree by a ratio of x axis range. Useful if
tiplabels become truncated when plotting. Default to 0.1.
widths
A numeric vector containing the relative widths of the tree and
species delimitation bars. See wrap_plots for details.
Defaults to c(0.5, 0.2).
Author
Pedro S. Bittencourt, Rupert A. Collins.
Details
delim_autoplot() is a wrapper for tree plotting with associated data implemented
using ggtree, ggplot2, and patchwork. If consensus = TRUE,
a consensus bar will be plotted next to the species delimitation plot,
summarizing partitions across samples. If no consensus is reached, an "X" will be plotted instead.
# view partitions using an ultrametric treep <- delim_autoplot(geophagus_delims, geophagus_beast)
p
# view partitions using a phylogramp1 <- delim_autoplot(geophagus_delims, geophagus_raxml)