packageRank (version 0.1.0)

plot.cranlogs: Plot method for cran_downloads2().

Description

Plot method for cran_downloads2().

Usage

# S3 method for cranlogs
plot(x, graphics_pkg = "ggplot2", points = TRUE,
  log_count = FALSE, smooth = FALSE, se = FALSE, f = 1/3, ...)

Arguments

x

object.

graphics_pkg

Character. "base" or "ggplot2".

points

Logical. Plot points.

log_count

Logical. Logarithm of package downloads.

smooth

Logical. Add smoother.

se

Logical. Works only with graphics_pkg = "ggplot2".

f

Numeric. stats::lowess() smoother window. For use with graphics_pkg = "base" only.

...

Additional plotting parameters.

Value

A base R or ggplot2 plot.

Examples

Run this code
# NOT RUN {
plot(cran_downloads2(packages = c("Rcpp", "rlang", "data.table"), from = "2019-05-01",
  to = "2019-05-01"))
plot(cran_downloads2(packages = c("Rcpp", "rlang", "data.table"), when = "last-month"))
# }

Run the code above in your browser using DataLab