MMM.plot_allocated_contribution_by_channel#
- MMM.plot_allocated_contribution_by_channel(samples, lower_quantile=0.025, upper_quantile=0.975, original_scale=True)[source]#
Plot the allocated contribution by channel with uncertainty intervals.
This function visualizes the mean allocated contributions by channel along with the uncertainty intervals defined by the lower and upper quantiles. The contributions can be plotted on the original scale or the transformed scale.
- Parameters:
- samples
Dataset
The dataset containing the samples of channel contributions.
- lower_quantile
float
, optional The lower quantile for the uncertainty interval. Default is 0.025.
- upper_quantile
float
, optional The upper quantile for the uncertainty interval. Default is 0.975.
- original_scalebool, optional
If True, the contributions are plotted on the original scale. Default is True.
- samples
- Returns:
- fig
matplotlib.figure.Figure
The matplotlib figure object containing the plot.
- fig