Description Usage Arguments Details Value See Also Examples
View source: R/viz-waterfall.R
Creates a four-bar waterfall diagram. Within the specified timeframe, shows initial,
newly opened, newly closed, and final open counts. Works with either issues or milestones,
as obtained by the
viz_waterfall(data, start_date, end_date, start = "created_at", end = "closed_at")
Dataset, such as those representing issues or milestones (i.e.
Character string in 'YYYY-MM-DD' form for first date to be considered (inclusive)
Character string in 'YYYY-MM-DD' form for last date to be considered (inclusive)
Unquoted variable name denoting issue start date
Unquoted variable name denoting issue end date
The following logic is used to classify issues:
start < start_date and (end > start_date or state == 'open')
start >= start_date and start <= end_date
end >= start_date and end <= end_date
start < end_date and (end > end_date or state == 'open')
The exact accuracy of the logic depends on filtering that has already been done to the dataset. Think carefully
about the population you wish to represent when
getting your data.
1 2 3 4
## Not run: viz_waterfall(milestones, '2017-01-01', '2017-03-31') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.