scmorph.pl.ridge_plot#
- scmorph.pl.ridge_plot(adata, x, y, layer='X', n_col=1, **kwargs)#
Plot features as ridge plot.
Helps to distinguish the distribution of a feature across different categories, such as plates.
- Parameters:
adata (
AnnData) – Annotated data matrix.x (
str) – Name of column containing feature values.y (
str) – Name of column containing category values.layer (
str(default:'X')) – Where to find values for the variable. Useful if you want to plot “pca” or “umap” values.n_col (
int(default:1)) – How many columns to plot over.kwargs (
Any) – Other arguments passed to seaborn.FacetGrid.
- Return type:
- Returns:
A ridge plot with categories split out and colored by.