Description Usage Arguments Value Examples
NOTE:
When using RStudio, the heatmap might not show inside the plot area, but will be visible once you click the 'Zoom' button.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | plot_heatmap(
trajectory,
expression_source = "expression",
features_oi = 20,
clust = "ward.D2",
margin = 0.02,
color_cells = NULL,
milestones = NULL,
milestone_percentages = trajectory$milestone_percentages,
grouping = NULL,
groups = NULL,
cell_feature_importances = NULL,
heatmap_type = c("tiled", "dotted"),
scale = dynutils::scale_quantile,
label_milestones = TRUE
)
|
trajectory |
A dynwrap trajectory. |
expression_source |
Source of the feature expression, defaults to |
features_oi |
The features of interest, either the number of features or a vector giving the names of the different features |
clust |
The method to cluster the features, or a hclust object |
margin |
A margin between trajectory segments. |
color_cells |
How to color the cells.
|
milestones |
Tibble containing the column |
milestone_percentages |
The milestone percentages. |
grouping |
A grouping of the cells (e.g. clustering) as a named character vector. |
groups |
A tibble containing character columns |
cell_feature_importances |
The importances of every feature in every cell, as returned by |
heatmap_type |
The type of heatmap, either tiled or dotted |
scale |
Whether to rescale the expression, can be a function or boolean |
label_milestones |
How to label the milestones. Can be TRUE (in which case the labels within the trajectory will be used), "all" (in which case both given labels and milestone_ids will be used), a named character vector, or FALSE |
A heatmap ggplot of an expression dataset with trajectory.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.