Skip to contents

Plot cohort_age_rate_tbl() output: rate (log10 y-axis) against creation-year cohort, one line per fixed age, faceted by source with a free y-scale per facet (sources sit on very different absolute rate scales, and unlike the main cross-source plots this one isn't trying to compare sources against each other - only cohorts within a source).

Usage

plot_cohort_age(tbl, source_display = NULL, min_repo_months = 30)

Arguments

tbl

As returned by cohort_age_rate_tbl().

source_display

Named character vector as in plot_step_change().

min_repo_months

Cells with less exposure than this are dropped before plotting, since a handful of repo-months makes for an unstable rate estimate.

Value

A ggplot object.

Examples

if (FALSE) { # \dontrun{
cohort_tbl <- cohort_age_rate_tbl (issue_authors_tbl, repo_tbl, "cran")
plot_cohort_age (cohort_tbl, SOURCE_DISPLAY_NAME)
} # }