Plot step-change in rOpenSci non-core rate, by review status
Source:R/plots.R
plot_ropensci_reviewed_step_change.RdBar chart of ropensci_reviewed_step_change_tbl() output: one bar for
reviewed, one for non-reviewed, faceted by popularity stratum. If tbl
carries a metric column (e.g. issues vs. comments, row-bound from two
ropensci_reviewed_step_change_tbl() calls), it is filtered down to the
single metric requested before plotting - one call produces one
single-metric plot, so issues and comments are two separate figures
rather than two facet rows of the same one.
Arguments
- tbl
As returned by
ropensci_reviewed_step_change_tbl(), optionally with an addedmetriccolumn.- metric
Which metric to plot:
"issues"(default) or"comments". Only used to filtertbldown to one metric when it carries ametriccolumn (matched case-insensitively against that column's values, e.g."Issues"/"Comments"); otherwisetblis assumed to already be single-metric, and this only sets the plot title.- ref_date
As in
plot_step_change(), used only to label the plot.
Examples
if (FALSE) { # \dontrun{
ros <- ropensci_reviewed_activity_tbl (issue_authors_tbl, repo_tbl, ropensci_raw)
ros_fc <- ropensci_reviewed_step_change_tbl (ros)
plot_ropensci_reviewed_step_change (ros_fc, metric = "issues")
} # }