Created
July 3, 2022 22:30
-
-
Save dsquintana/03eb6449bba7440584112d978918979d to your computer and use it in GitHub Desktop.
Comparing CRAN download numbers for R packages
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("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