factors_scatter#
- mofaflex.pl.factors_scatter(model, x, y, groups=None, color=None, shape=None, size=2, alpha=1, figsize=None, nrow=None, ncol=None)#
Plot two factors against each other and color by covariates.
- Parameters:
model (
MOFAFLEX) – A MOFA-FLEX model.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.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: