plotLineage | R Documentation |
Plot slingshot lineages on UMAP
plotLineage(pt_lin, curves, add_lineage = FALSE)
pt_lin |
The pseudotime column to plot |
curves |
The slingshot curves to plot |
add_lineage |
Add the lineage paths to the plot |
A ggplot object
## Not run:
pseudotime_df <- scGrabbag::extractSlinghot(sds)
df <- cbind(df, pseudotime_df)
pt_lineages <- grep("PT", names(df), value = T)
n_lineages <- length(pt_lineages)
# Use purrr to generate plots for each PT column
plot_list <- purrr::map(pt_lineages, ~plotLineage(.x, curves, add_lineage = TRUE))
cowplot::plot_grid(plotlist = plot_list, align = 'v')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.