Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dsquintana/03eb6449bba7440584112d978918979d to your computer and use it in GitHub Desktop.
Save dsquintana/03eb6449bba7440584112d978918979d to your computer and use it in GitHub Desktop.
Comparing CRAN download numbers for R packages
library("dlstats")
library("ggplot2")
pack <- cran_stats(c("metafor", "meta", "rmeta", "psychmeta"))
if (!is.null(pack)) {
print(head(pack))
ggplot(pack, aes(end, downloads, group=package, color=package)) +
geom_line() +
geom_point() +
scale_y_log10()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment