omicverse.pl.boxplot

omicverse.pl.boxplot(data, hue, x_value, y_value, width=0.3, title='', figsize=(6, 3), palette=None, fontsize=10, legend_bbox=(1, 0.55), legend_ncol=1, hue_order=None)[source]

Create a boxplot with jittered points to visualize data distribution across categories.

Parameters:
  • data (pd.DataFrame) – Input table containing grouping and numeric columns.

  • hue (str) – Column name used for color grouping.

  • x_value (str) – Column name used as x-axis category.

  • y_value (str) – Column name containing numeric values.

  • width (float) – Width of each box element.

  • title (str) – Plot title.

  • figsize (tuple) – Figure size passed to matplotlib.

  • palette (list or None) – Color list for hue groups; default palette is used when None.

  • fontsize (int) – Base font size for ticks/labels.

  • legend_bbox (tuple) – Legend anchor position.

  • legend_ncol (int) – Number of legend columns.

  • hue_order (list or None) – Explicit order of hue categories.

Returns:

Figure and axes of generated boxplot.

Return type:

Tuple[matplotlib.figure.Figure, matplotlib.axes.Axes]