inset: geom_inset

Description Usage Arguments Value Author(s)

View source: R/inset.R

Description

add subplots to tree

add insets in a tree

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
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


ggtree documentation built on Nov. 15, 2020, 2:09 a.m.