plot_distribution#

RAPDOR.plots.plot_distribution(subdata, design: pandas.DataFrame, offset: int = 0, colors: Iterable = None, yname: str = 'rel. protein amount', show_outliers: bool = True)#

Plots the distribution of proteins using mean, median, min and max values of replicates

Parameters:
  • subdata (np.ndarray) – an array of shape num samples x num_fractions.

  • design (pd.Dataframe) – the design dataframe to distinguish the groups from the samples dimension

  • offset (int) – adds this offset to the fractions at the x-axis range

  • colors (Iterable[str]) – An iterable of color strings to use for plotting

  • yname (str) – yaxis_title

  • show_outliers (bool) – Shows min and max of subdata.

Returns: go.Figure

A plotly figure containing a scatter-line for the mean, median, min and max of the replicates.