Closed xiangpin closed 1 year ago
add as.phylo.dendro method to convert dendro class to phylo class
as.phylo.dendro
dendro
phylo
new feature
library(ggplot2) library(ggtree) library(treeio) library(ggdendro) hc <- hclust(dist(USArrests), "ave") x <- dendro_data(hc) tr <- as.phylo(x) p1 <- ggtree(hc, hang = -1) + theme_tree2() + scale_x_continuous(expand = c(0, 0.01)) + geom_tiplab(as_ylab = T) p2 <- ggtree(tr) + theme_tree2() + scale_x_continuous(expand = c(0, 0.01)) + geom_tiplab(as_ylab = T) f <- p1 / p2
Description
add
as.phylo.dendro
method to convertdendro
class tophylo
classRelated Issue
new feature
Example