plotLineage: Plot slingshot lineages on UMAP

View source: R/plotLineage.R

plotLineageR Documentation

Plot slingshot lineages on UMAP

Description

Plot slingshot lineages on UMAP

Usage

plotLineage(pt_lin, curves, add_lineage = FALSE)

Arguments

pt_lin

The pseudotime column to plot

curves

The slingshot curves to plot

add_lineage

Add the lineage paths to the plot

Value

A ggplot object

Examples

## 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)


odavalos/scGrabBag documentation built on Jan. 15, 2025, 11:45 p.m.