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:
- samples
Dataset
The dataset containing the channel contributions.
- figsize
tuple
[float
,float
], optional The size of the figure to be created, by default (12, 6).
- ax
plt.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.
- samples
- Returns:
Tuple
[plt.Figure
,plt.Axes
]The matplotlib figure object and axis containing the plot.