eugene.plot.violinplot

eugene.plot.violinplot(sdata, vars=None, groupby=None, orient='v', 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 violinplot 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 as a violin plot. 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. Uses settings by default.

  • return_axes (bool) – Return axes.

  • **kwargs – Additional keyword arguments to pass to seaborn.

  • Returns

  • ------- – None

Return type:

Optional[Axes]