Description Usage Arguments Value Examples
View source: R/plot_downloads.R
This function uses API of
CRAN Logs to scrap the download logs of the packages and
then plots the data. It works on objects of class character
(vector),
deepdep
, package_dependencies
and package_downloads
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | plot_downloads(x, ...)
## Default S3 method:
plot_downloads(x, ...)
## S3 method for class 'deepdep'
plot_downloads(x, from = Sys.Date() - 365, to = Sys.Date(), ...)
## S3 method for class 'package_dependencies'
plot_downloads(x, from = Sys.Date() - 365, to = Sys.Date(), ...)
## S3 method for class 'package_downloads'
plot_downloads(x, from = Sys.Date() - 365, to = Sys.Date(), ...)
## S3 method for class 'character'
plot_downloads(x, from = Sys.Date() - 365, to = Sys.Date(), ...)
|
x |
A |
... |
Ignored. |
from |
A |
to |
A |
A ggplot2
class object.
1 2 3 4 5 6 | library(deepdep)
plot_downloads("htmltools")
dd <- deepdep("ggplot2")
plot_downloads(dd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.