spatialtis.plotting.cell_components#

spatialtis.plotting.cell_components(data, groupby=None, key='cell_components', orient='v', type_order=None, **plot_options)[source]#

Visualization of the cell components

Parameters
dataAnnData

The AnnData object for plotting.

groupbystr

The key in Config.exp_obs to stratify the data.

keystr

The key that store the analysis results.

orient{‘v’, ‘h’}, default: ‘v’
type_orderlist of str

The list of cell type to show on the plot.

**plot_options:

Pass to milkviz.stacked_bar().