eugene.plot.boxplot¶
- eugene.plot.boxplot(sdata, vars, groupby=None, orient='v', jitter=False, rc_context={'axes.labelsize': 14, 'axes.titlesize': 16, 'legend.fontsize': 12, 'pdf.fonttype': 42, 'ps.fonttype': 42, 'xtick.labelsize': 12, 'ytick.labelsize': 12}, return_axes=False, **kwargs)¶
Plots a boxplot of a vars in a SeqData using Seaborn.
This function can be used to show the distribution of a single or multiple columns of seqs_annot within a SeqData. If a groupby is provided then the distribution is grouped by the groupby column.
- Parameters:
sdata (SeqData) – SeqData object.
vars (str or list of str) – vars to plot.
groupby (str) – Key to group by.
orient (str) – Orientation of plot.
rc_context (Mapping[str, str]) – Matplotlib rc context.
return_axes (bool) – Return axes.
**kwargs – Additional keyword arguments to pass to seaborn.
- Return type:
Optional
[Axes
]