pkgDNLs_worldmapcolor | R Documentation |
Plots a worldmap colored by the number of users installation for a given package
pkgDNLs_worldmapcolor(pkg_name, dataset, remove_dups = TRUE, ...)
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. |
RStudio maintains its own CRAN mirror, https://cran.rstudio.com/ and offers its log files.
a ggplot object
Boris Hejblum
https://www.nicebread.de/finally-tracking-cran-packages-downloads/
download_RStudio_CRAN_data, read_RStudio_CRAN_data, barplot_package_users_per_day, ggplot
## Not run: # 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 ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.