Description Usage Arguments Value Examples
Plot a trajectory as a dendrogram
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | plot_dendro(
trajectory,
color_cells = c("auto", "none", "grouping", "feature", "milestone", "pseudotime"),
grouping = NULL,
groups = NULL,
feature_oi = NULL,
expression_source = "expression",
pseudotime = NULL,
color_milestones = c("auto", "given", "cubeHelix", "Set3", "rainbow"),
milestones = NULL,
milestone_percentages = NULL,
alpha_cells = 1,
size_cells = 2.5,
border_radius_percentage = 0.1,
diag_offset = 0.05,
y_offset = 0.2,
arrow = grid::arrow(type = "closed")
)
|
trajectory |
A dynwrap trajectory. |
color_cells |
How to color the cells.
|
grouping |
A grouping of the cells (e.g. clustering) as a named character vector. |
groups |
A tibble containing character columns |
feature_oi |
The name of a feature to use for colouring the cells. |
expression_source |
Source of the feature expression, defaults to |
pseudotime |
The pseudotime from the root of the trajectory to the cells as a named numeric vector. |
color_milestones |
Which palette to use for colouring the milestones
|
milestones |
Tibble containing the column |
milestone_percentages |
The milestone percentages. |
alpha_cells |
The alpha of the cells |
size_cells |
The size of the cells |
border_radius_percentage |
The fraction of the radius that is used for the border |
diag_offset |
The x-offset (percentage of the edge lenghts) between milestones |
y_offset |
The size of the quasirandom cell spreading in the y-axis |
arrow |
The type and size of arrow in case of directed trajectories. Set to NULL to remove arrow altogether. |
A dendrogram ggplot of the trajectory.
1 2 3 4 5 6 7 8 | data(example_tree)
plot_dendro(example_tree)
plot_dendro(example_tree, color_cells = "pseudotime")
plot_dendro(
example_tree,
color_cells = "grouping",
grouping = dynwrap::group_onto_nearest_milestones(example_tree)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.