scmorph.pl.cumulative_density

scmorph.pl.cumulative_density#

scmorph.pl.cumulative_density(adata, x, layer='X', color=None, n_col=3, xlim=None, xlabel=None, show=True, **kwargs)#

Plot cumulative densities of variables in AnnData

Parameters:
  • adata (AnnData) – AnnData object

  • x (int | str | list[int | str]) – Name or index of variable(s) to plot

  • layer (str (default: 'X')) – Where to find values for the variable. Useful if you want to plot “pca” or “umap” values.

color

Variable in “obs” to color by

n_col

Number of columns to facet by

xlim

Limits of x-axis

xlabel

Label for x-axis

show

Show the plot

kwargs

Other arguments passed to FacetGrid

Return type:

FacetGrid

Returns:

plt.Figure Plots of cumulative densities of variables in AnnData