Description Usage Arguments Value See Also Examples
Draw 2 sigmoid curves
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,
...
)
|
branch1 |
which samples in |
select_cells1 |
which cells in the first branch |
time_axis |
whether to plot the x axis |
axis_label |
what to label the |
vert_trans |
the extent of vertical translation |
a list of ggplot layers
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.