tree <- list(edge = matrix(c(1,2, 2,3), byrow = TRUE, ncol = 2),
tip.label = "", Nnode = 2,
node.coord = matrix(c(0,0,0, 1,2,2, 3,1,3), byrow = TRUE,
ncol = 3),
edge.weight = c(0.5, 0.25), edge.type = c("d","l"))
class(tree) <- "phylo3D"
# Alternatively try: tree <- treeDbalance::example3Dtrees$bean09
plotPhylo3D(tree, show_node_enum = FALSE)
addPhylo3D(tree, offset = c(1,1,0))
plotImbalPhylo3D(tree, imbal_type="mu", max.seclen=0.5, color.imbal=TRUE,
show.gradient=FALSE)
addImbalPhylo3D(tree, imbal_type="mu", offset = c(1,0,0), max.seclen=0.5,
color.imbal=FALSE, show.gradient = FALSE)
Run the code above in your browser using DataLab