spatialtis.plotting.cell_density#
- spatialtis.plotting.cell_density(data, groupby=None, key='cell_density', orient='v', type_order=None, **plot_options)[source]#
Visualization of cell density
- 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()
.