Description Usage Arguments Value
Plot sigmoid curve for one branch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | plot_one_branch(
dat,
branch_id,
branch_col = "epil_branch",
slope = 1,
off_set = 5,
filter_lim = c(-Inf, Inf),
time_col = "MGP_PT",
br_sign = 1,
color_col = "broad_type",
thickness = 0.01,
select_cells = NULL,
label_group = NULL,
text_offset = 0,
AP = NULL,
elevation = 0,
time_df = NULL,
time_time_col = NULL,
time_color_col = NULL,
time_group_col = NULL,
branch_name = NA,
repel_force = 0.001,
save_dir = NULL,
plot_branch_names = T
)
|
dat |
a dataframe |
branch_id |
which branch(es) to plot |
branch_col |
which column contains the branch information |
slope |
the steepness of the curve. The larger the value, the smoother the curve becomes |
off_set |
shift the tuning point of the sigmoid curve. The higher the value, the more leftwards the curve will shift |
filter_lim |
the min and max of x axis |
time_col |
which column contains pseudotime information |
br_sign |
whether to flip the curve along the x axis, -1 indicates a flip |
color_col |
which column contains grouping information |
thickness |
the thickness of the curve |
select_cells |
which cells in |
text_offset |
how much the labels deviate from the top of the ribbon |
elevation |
how much the curve is vertically translated. The direction
is the same as |
a list of ggplot layers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.