Description Usage Arguments Value
The cells can be coloured by a grouping (clustering), according to a feature (gene expression), closest milestone, or pseudotime from the root of the trajectory.
1 2 3 4 5 6 7 8 9 10 11 12 13 | add_cell_coloring(
cell_positions,
color_cells = c("auto", "none", "grouping", "feature", "milestone", "pseudotime"),
trajectory,
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
)
|
cell_positions |
The positions of the cells, represented by a tibble.
Must contain column |
color_cells |
How to color the cells.
|
trajectory |
A dynwrap trajectory. |
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. |
A named list with following objects:
cell_positions: The trajectory$progressions
object with a color
column added.
color_scale: A ggplot colour scale to add to the downstream ggplot.
fill_scale: A ggplot fill scale to add to the downstream ggplot.
color_cells: The input color_cells
value, except "auto"
will have been replaced depending
on which other parameters were passed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.