Created
November 28, 2018 11:15
-
-
Save fdavidcl/ef1c2073d732bf1a023e75964cbdd139 to your computer and use it in GitHub Desktop.
Get a cumulative plot of Ruta downloads from the RStudio CRAN mirror
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(cranlogs) | |
library(purrr) | |
dat <- cran_downloads(from = "2018-05-08", packages = "ruta") | |
cumulative <- map_dbl(1:length(dat$count), ~ sum(dat$count[1:.])) | |
plot(cumulative ~ date, data = dat, type = "l") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output is something like this: