chart_mediaplan: Create the media plan chart for a scenario.

View source: R/funcs_charts.R

chart_mediaplanR Documentation

Create the media plan chart for a scenario.

Description

This function creates a stacked bar chart where period is on the X axis, optimal spend is on the Y axis and we have a legend entry per allocation unit (without period).

Usage

chart_mediaplan(all_scenarios_table, chosen_scenario, chosen_grouping = NULL)

Arguments

all_scenarios_table

A data set with information from all scenarios.

chosen_scenario

A scenario name.

chosen_grouping

One of "alloc_unit", "channel", "channel.group.level1, "channel.group.level2", "channel.group.level3".

Details

The user can supply channel filters.

Value

A chart.


cath-parkinson/mm.reoptimise documentation built on May 12, 2022, 3:34 p.m.