Description Usage Arguments Details Value Examples
Produces a list with two data frames; one with mean node values that can be represented as points and or lines, and a another with 95 that can be represented as a polygon.
1 | ltt.df.hpd(phy)
|
phy |
a |
It's inteded use is to generate a format that is easily compatible with ggplot2 (see example).
list
object with 2 data frames, one for points and the other for polygons
1 2 3 4 5 6 7 8 | file <- system.file("data/mcc.tre", package="rBt")
tr <- read.annot.beast(file)
# find the root node:
my_ltt <- ltt.df.hpd(tr)
library(ggplot2)
ggplot(my_ltt$points, aes(x=mean, y=N)) +
geom_poly(data=my_ltt$poly, aes(x=x, y=y), fill="grey", alpha=0.5) +
geom_point() + geom_line()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.