BAITS.VDJ.pl._plot_bar

Contents

BAITS.VDJ.pl._plot_bar#

BAITS.VDJ.pl._plot_bar(df, x, y, groupby=None, palette='Set2', xlabel=None, ylabel='Clone Richeness', ylog=False, ax=None, figsize=(4, 3.5))#

Create barplot with overlaid stripplot for grouped comparisons.

Parameters:
  • df (pandas.DataFrame) – Input dataframe.

  • x (str) – Column used for x-axis categories.

  • y (str) – Column used for y-axis values.

  • groupby (str, optional) – Column used for hue grouping.

  • palette (str, default="Set2") – Color palette used for plotting.

  • xlabel (str, optional) – Label for x-axis.

  • ylabel (str, default="Clone Richeness") – Label for y-axis.

  • ylog (bool, default=False) – Whether to use logarithmic scaling on y-axis.

  • ax (matplotlib.axes.Axes, optional) – Axes object for plotting.

  • figsize (tuple, default=(4,3.5)) – Figure size.

Returns:

Displays the barplot.

Return type:

None