mofaflex.pl.factors_scatter#
- mofaflex.pl.factors_scatter(model, x, y, groups=None, color=None, shape=None, data=None, size=2, alpha=1, figsize=None, nrow=None, ncol=None)#
Plot two factors against each other and color by covariates.
- Parameters:
model (
MofaFlex|MOFAFLEX) – The term to plot the factor correlation for. Can also be aMOFAFLEXobject if it has only one term.y (
int|str) – The factor to plot on the y-axis. only one additive term.groups (
str|Sequence[str] |None(default:None)) – The groups to plot. IfNone, all groups are shown.color (
str|None(default:None)) – The covariate name to color by.shape (
str|None(default:None)) – The covariate name to shape by.data (
MuData|Mapping[str,Mapping[str,AnnData]] |AnnData|None(default:None)) – The data that the model was trained on. Only required ifcolor is not Noneorshape is not None.size (
float(default:2)) – Size of the data points.alpha (
float(default:1)) – Transparency of the data points.figsize (
tuple[float,float] |None(default:None)) – Figure size in inches.nrow (
int|None(default:None)) – Number of rows in the faceted plot. If None, plotnine will determine automatically.ncol (
int|None(default:None)) – Number of columns in the faceted plot. If None, plotnine will determine automatically.
- Return type: