Plot the trailing-window rate (issue_rate_tbl()'s rate column - see its metric param for whether that's issues or comments per repo-month) over time, one line per popularity stratum.
Source: R/plot-activity.R
plot_activity.RdPlot the trailing-window rate (issue_rate_tbl()'s rate column - see
its metric param for whether that's issues or comments per repo-month)
over time, one line per popularity stratum.
Arguments
- rate_tbl
As returned by
issue_rate_tbl()- itsmetric,window,contrib_threshold, andsource_nameattributes are read straight off it, the first three to label the y-axis andsource_nameto annotate the plot panel directly (top-right corner), rather than needing to be passed in again.- src_name
Name of source of
rate_tblto be added as plot annotation if specified.- start_year
Optional year (e.g.
2018) to start the plotted window from;NULL(default) plotsrate_tbl's full window. Only crops the display -rate_tblisn't refetched, so this can't extend the window beyond whatissue_rate_tbl()was already called with.
Examples
if (FALSE) { # \dontrun{
rate_tbl <- issue_rate_tbl (issue_authors_tbl, repo_tbl, "pypi")
plot_activity (rate_tbl)
} # }