geom_th_zoomclade: Scale clades

View source: R/geom_zoomClade.R

geom_th_zoomcladeR Documentation

Scale clades

Description

This is to zoom in specific clades.

Usage

geom_th_zoomclade(node = NULL, scale_x = 1, scale_y = 1)

Arguments

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 node.

scale_y

A numeric vector to scale clades vertically. It should have length equal to 1 or the same length as node.

Value

a layer

Author(s)

Ruizhu Huang

Examples


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)

fionarhuang/TreeHeatmap documentation built on Feb. 1, 2024, 7:30 a.m.