MMM.plot_budget_allocation#

MMM.plot_budget_allocation(samples, figsize=(12, 6), ax=None, original_scale=True)[source]#

Plot the budget allocation and channel contributions.

Parameters:
samplesDataset

The dataset containing the channel contributions.

figsizetuple[float, float], optional

The size of the figure to be created, by default (12, 6).

axplt.Axes, optional

The axis to plot on. If None, a new figure and axis will be created.

original_scalebool, optional

A boolean flag to determine if the values should be plotted in their original scale, by default True.

Returns:
Tuple[plt.Figure, plt.Axes]

The matplotlib figure object and axis containing the plot.