plot_two_branch: Draw 2 sigmoid curves

Description Usage Arguments Value See Also Examples

Description

Draw 2 sigmoid curves

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
plot_two_branch(
  dat,
  branch_col = "epil_branch",
  color_col = "broad_type",
  time_col = "MGP_PT",
  branch1 = c("TB_stem", "STB_branch"),
  branch2 = c("TB_stem", "EVT_branch"),
  select_cells1 = NULL,
  select_cells2 = NULL,
  AP = NULL,
  time_axis = T,
  axis_label = "time",
  vert_trans = 0,
  branch_names = c(NA, NA, NA),
  plot_branch_names = T,
  shorten_ratio = 0.9,
  thickness = 0.01,
  show_tick = T,
  ...
)

Arguments

branch1

which samples in dat make up the first branch

select_cells1

which cells in the first branch

time_axis

whether to plot the x axis

axis_label

what to label the time_axis

vert_trans

the extent of vertical translation

Value

a list of ggplot layers

See Also

plot_one_branch

Examples

1
2
3
4
5
6
ggplot () +
plot_two_branch (meta, 
                 select_cells1 = meta$broad_type != 'STB',
                 select_cells2 = meta$broad_type != 'EVT',
                 text_offset=0.007, off_set= 5
) + ggplot2::theme (legend.position='none')

Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.