plotTimingPatterns: Plot timing patterns of sampled customers

Description Usage Arguments Examples

View source: R/helpers.R

Description

Plot timing patterns of sampled customers

Usage

1
2
3
4
5
6
7
8
plotTimingPatterns(
  elog,
  n = 40,
  T.cal = NULL,
  T.tot = NULL,
  title = "Sampled Timing Patterns",
  headers = NULL
)

Arguments

elog

Event log, a data.frame with columns cust and transaction time t or date.

n

Number of sampled customers.

T.cal

End of calibration period, which is visualized as a vertical line.

T.tot

End of observation period

title

Plot title.

headers

Vector of length 2 for adding headers to the plot, e.g. c("Calibration", "Holdout").

Examples

1
2
3
data("groceryElog")
plotTimingPatterns(groceryElog, T.tot = "2008-12-31")
plotTimingPatterns(groceryElog, T.cal = "2006-12-31", headers = c("Calibration", "Holdout"))

Example output



BTYDplus documentation built on Jan. 21, 2021, 5:10 p.m.