Skip to content

Instantly share code, notes, and snippets.

@ericnovik
Last active July 27, 2021 13:52
Show Gist options
  • Save ericnovik/47c56ea80609d7e00481187e90bc631d to your computer and use it in GitHub Desktop.
Save ericnovik/47c56ea80609d7e00481187e90bc631d to your computer and use it in GitHub Desktop.
library(cranlogs)
library(ggplot2)
d <- cran_downloads(
package = c("rstan", "brms", "rstanarm"),
from = "2015-01-01",
to = Sys.Date()
)
ggplot(d, aes(x = date, y = count, color = package)) +
geom_smooth() +
geom_hline(yintercept = 0, size = 0.1) +
labs(x = '', y = 'Daily downloads',
title = 'RStan daily downloads from RStudio CRAN mirror')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment