Plot rolling geometric-mean wait time between consecutive first-time authors, across sources and strata
Source:R/plots.R
plot_author_interval.RdCalls 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
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.