geom_inset {ggtree}R Documentation

geom_inset

Description

add subplots to tree

add insets in a tree

Usage

geom_inset(
  insets,
  width = 0.1,
  height = 0.1,
  hjust = 0,
  vjust = 0,
  x = "node",
  reverse_x = FALSE,
  reverse_y = FALSE
)

inset(
  tree_view,
  insets,
  width,
  height,
  hjust = 0,
  vjust = 0,
  x = "node",
  reverse_x = FALSE,
  reverse_y = FALSE
)

Arguments

insets

a list of ggplot objects, named by node number

width

width of inset, relative to the range of x-axis

height

height of inset, relative to the range of y-axis

hjust

horizontal adjustment

vjust

vertical adjustment

x

x position, one of 'node' and 'branch'

reverse_x

whether x axis was reversed by scale_x_reverse

reverse_y

whether y axis was reversed by scale_y_reverse

tree_view

tree view

Value

inset layer

tree view with insets

Author(s)

Guangchuang Yu

Guangchuang Yu


[Package ggtree version 3.0.4 Index]