Skip to contents

Calls author_interval_trend_tbl() for every source in POPULARITY_METRIC and row-binds the results, then plots each source's window-month trailing geometric mean of interval_days over time, one line per popularity stratum, faceted by source with a free y-scale per facet (sources sit on very different absolute wait times, as in plot_cohort_age()).

Usage

plot_author_interval(
  issue_authors_tbl,
  repo_tbl,
  source_display = NULL,
  n_strata = 4L,
  window = 12L,
  date_start = as.Date("2015-01-01"),
  date_end = NULL,
  start_year = NULL
)

Arguments

issue_authors_tbl

As returned by fetch_issue_authors().

repo_tbl

As returned by build_repo_tbl().

source_display

Named character vector as in plot_step_change().

n_strata, window, date_start, date_end

Passed to each source's author_interval_trend_tbl() call.

start_year

Optional year to crop the plotted window to, as in plot_activity() - display-only, doesn't affect the underlying interval calculations.

Value

A ggplot object.

Examples

if (FALSE) { # \dontrun{
plot_author_interval (issue_authors_tbl, repo_tbl, SOURCE_DISPLAY_NAME)
} # }