msmu.pl.plot_var
Plots variable annotations using stacked bars, box/violin plots, or histograms.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mdata
|
MuData
|
MuData object containing the modality to visualize. |
required |
modality
|
str
|
Target modality; defaults to 'psm'. |
'psm'
|
groupby
|
str | None
|
Observation column used to group traces. |
None
|
var_column
|
str | None
|
Variable column to visualize. |
None
|
obs_column
|
str | None
|
Observation column used for labeling/group resolution. |
None
|
ptype
|
str | None
|
Plot type inferred for numeric/categorical data when None. |
None
|
bins
|
int
|
Number of bins for histogram view. |
30
|
**kwargs
|
str
|
Additional layout options forwarded to Plotly. |
{}
|
Returns:
| Type | Description |
|---|---|
Figure
|
Plot of variable annotation distributions. |