View source: R/geom_zoomClade.R
geom_th_zoomclade | R Documentation |
This is to zoom in specific clades.
geom_th_zoomclade(node = NULL, scale_x = 1, scale_y = 1)
node |
a vector of node |
scale_x |
A numeric vector to scale clades horizontally. It should have
length equal to 1 or the same length as |
scale_y |
A numeric vector to scale clades vertically. It should have
length equal to 1 or the same length as |
a layer
Ruizhu Huang
library(ggtree)
set.seed(1)
rt <- ape::rtree(200)
#ggtree(rt, branch.length = "none") +
# geom_th_zoomclade(node = c(280, 320), scale_y = 8,
# scale_x = c(2, 1.75)) +
# geom_hilight(node = 280, fill = "red", alpha = 0.5) +
# geom_hilight(node = 320, fill = "blue", alpha = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.