Usage
plotTree.wBars(tree, x, scale=1, width=NULL, type="phylogram", method="plotTree",
tip.labels=FALSE, col="grey", border=NULL, ...)
plotTree.barplot(tree,x,args.plotTree=list(),args.barplot=list())
plotTree.boxplot(tree,x,args.plotTree=list(),args.boxplot=list())
Arguments
tree
an object of class "phylo"
.
x
a named vector of trait values. For plotTree.boxplot
, the names should repeat for multiple observations per species. For plotTree.boxplot
x
can also be supplied as a formula, though in that case the factor levels need to be provided in a valid cladewise order of the tips in tree
. This order doesn't need to correspond with the current order of the tip labels.
scale
scaling factor for the tip bars (relative to the total tree height).
width
width of the tip bars.
type
plot type. Can be "phylogram"
or "fan"
.
method
plotting method to use. Can be "plotTree"
(for plotTree
) or "plotSimmap"
(for plotSimmap
). tip.labels
argument indicating whether or not tip labels should be plotted. Defaults to tip.labels=FALSE
.
col
colors of the plotted bars. Can be a single value or a vector with length equal to the number of tips in the tree.
border
single value specifying the color of the border for the plotted bars. Defaults to border=NULL
, which means that black borders will be plotted.
args.plotTree
in plotTree.barplot
, arguments to be passed to plotTree
. args.barplot
in plotTree.barplot
, arguments to be passed to barplot
. args.boxplot
in plotTree.boxplot
, arguments to be passed to boxplot
.