Plots a worldmap colored by the number of users installation for a given package

pkgDNLs_worldmapcolor(pkg_name, dataset, remove_dups = TRUE, ...)

Arguments

pkg_name

a character string of the package we are interested in.

dataset

a dataset output from running read_RStudio_CRAN_data.

remove_dups

logical (default is TRUE). Should the duplicate user ids (based on their ips) be removed.

...

not in use.

Source

https://www.nicebread.de/finally-tracking-cran-packages-downloads/

Value

a ggplot object

Details

RStudio maintains its own CRAN mirror, https://cran.rstudio.com/ and offers its log files.

See also

Author

Boris Hejblum

Examples

if (FALSE) { # The first two functions might take a good deal of time to run (depending on the date range) RStudio_CRAN_data_folder <- download_RStudio_CRAN_data(START = '2013-04-02', END = '2013-04-05') # around the time R 3.0.0 was released my_RStudio_CRAN_data <- read_RStudio_CRAN_data(RStudio_CRAN_data_folder) head(my_RStudio_CRAN_data) wm <- pkgDNLs_worldmapcolor(pkg_name="installr", dataset = my_RStudio_CRAN_data) wm }