factor

Contents

factor#

mofaflex.pl.factor(model, factor=1, show_featurenames=False, figsize=None)#

Plot factor values (y-axis) for each sample (x-axis).

Parameters:
  • model (MOFAFLEX) – The MOFA-FLEX model.

  • factor (int | str (default: 1)) – The factor to plot.

  • show_featurenames (bool (default: False)) – Whether to show the feature names on the X axis.

  • figsize (tuple[float, float] | None (default: None)) – Figure size in inches.

Return type:

plotnine.ggplot