Skip to contents

This uses ggplot2::geom_tile() to produce a grid with a row aligned with each tip on the tree, and a column for each type of data specified. If no scales are specified, one is created for each factor column in the metadata table.

Usage

plot_bars(phylepic, ...)

Arguments

phylepic

object of class "phylepic".

...

scale specifications.

Value

If phylepic is specified returns a ggplot, otherwise a function that when passed a "phylepic" object produces a ggplot for use with plot.phylepic().

See also

Other phylepic plots: plot.phylepic(), plot_calendar(), plot_epicurve(), plot_tree()