HPDbars: Function from phyloch package Add interval bars to nodes on a...

View source: R/pkg_phyloch_functions.R

HPDbarsR Documentation

Function from phyloch package Add interval bars to nodes on a phylo plot.

Description

Function from phyloch package Add interval bars to nodes on a phylo plot.

Usage

HPDbars(
  phy,
  label = "height_95%_HPD",
  tab = NULL,
  nodes,
  col,
  lwd,
  broken = FALSE,
  ...
)

Arguments

phy

A phylo object with two extra elements specifying the MAX and MIN limits of intervals to plot.

label

A character vector corresponding to the name used to label intervals stored in phy

tab

Something I'm not sure of, should ask Christoph Heibl.

nodes

Numeric. Use this if you wanna plot bars on certain nodes only.

col

Color for the bars, default to "grey75"

lwd

Line width for the bars, default to 5.

broken

Something I'm not sure of, should ask Christoph Heibl.

...

Arguments passed on to graphics::segments

x0

coordinates of points from which to draw.

y0

coordinates of points from which to draw.

x1

coordinates of points to which to draw. At least one must be supplied.

y1

coordinates of points to which to draw. At least one must be supplied.

lty

graphical parameters as in par, possibly vectors. NA values in col cause the segment to be omitted.

Details

Make sure ape is loaded otherwise it won't find .PlotPhyloEnv

Value

Adds bars to nodes on a phylo plot.

Author(s)

Christoph Heibl


phylotastic/datelifeplot documentation built on July 14, 2022, 12:35 p.m.