plotDownloads: Plotting R Package Downloads by month or day.

Description Usage Arguments Details Value Author(s) References Examples

Description

This functions creates a ggplot2 graph of the number of downloads of a chosen package from the R Studio CRAN mirror. The graph can be by month or by day.

Usage

1
2
plotDownloads(PackageName = "ggplot2", from = "2016-04-01",
  to = "2016-11-30", by = "month")

Arguments

PackageName

Name of the package.

from

Start date, in yyyy-mm-dd format.

to

End date, in yyyy-mm-dd format.

by

Plot downloads by "day" or "month". It is advised to only use "day" for shorter periods of time to avoid too much clutter.

Details

When plotting by day, each month/year combination is assigned a different colour.

Value

A ggplot2 object based on the parameter settings.

Author(s)

Ewoud De Troyer

References

Not really.

Examples

1
2
3
4
5
## Not run: 
plotDownloads("ggplot2",from="2015-01-01",to="2016-11-30")
plotDOwnloads("ggplot2",from="2016-04-01",to="2016-11-30",by="day")

## End(Not run)

ewouddt/RDownloads documentation built on May 16, 2019, 9:42 a.m.