box_per_ind

besca.pl.box_per_ind(plotdata, y_axis, x_axis, order=None, figsize=(4, 3.5))[source]

plot boxplot with values per individual.

General plotting function to produce one or multiple boxplots for average/fraction gene expression per individual/sample.

Parameters:
  • plotdata (DataFrame) – pandas DataFrame containing the complete data that is to be plotted.

  • x_axis (str) – string identifying which column of the DataFrame is to be plotted on the x-axis (condition)

  • y_axis (list or str) – string identifying which column of the DataFrame is to be plotted on the y-axis (genes)

  • order (list) – list identifying the order for the categories on the x_axis

  • figsize ((width, height) or None | default = (4,3.5)) – optional parameter to define the figure size of the plot that is to be generated

Return type:

Figure