mofaflex.pl.factor

Contents

mofaflex.pl.factor#

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

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

Parameters:
  • model (MofaFlex | MOFAFLEX) – The term to plot the factor values for. Can also be a MOFAFLEX object if it has only one term.

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

  • show_samplenames (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