Description Usage Arguments Value
Plot contribution trends
1 2 3 4 5 | contribution_trends(df = display_revised, time_col = "week",
campaign_col = "campaign", grouping = "site_dcm",
campaign_string = "continuity", agg_fun = summarise_dfa,
kpis = c("cost", "clicks", "revenue_clickthrough", "revenue_viewthrough"),
final_week_start = report_dates$final_week_start, nweeks = 7)
|
df |
input data frame |
time_col |
string giving colname with time values |
campaign_col |
string giving campaign colname |
grouping |
string giving field to group_by |
campaign_string |
string to parse for identifying campaign |
agg_fun |
aggregation function, typically a dplyr::summarise() function defined elsewhere |
kpis |
vector of strings giving KPI field names |
final_week_start |
date vector of length 1 |
nweeks |
number of weeks to include |
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.