plot.cranDownloads: Plot method for cranDownloads().

Description Usage Arguments Value Examples

View source: R/cranDownloads.R

Description

Plot method for cranDownloads().

Usage

1
2
3
4
5
6
7
## S3 method for class 'cranDownloads'
plot(x, statistic = "count", graphics = "auto",
  points = "auto", log.count = FALSE, smooth = FALSE, se = FALSE,
  f = 1/3, package.version = FALSE, r.version = FALSE,
  population.plot = FALSE, population.seed = as.numeric(Sys.Date()),
  multi.plot = FALSE, same.xy = TRUE, legend.loc = "topleft",
  r.total = FALSE, dev.mode = FALSE, ...)

Arguments

x

object.

statistic

Character. "count" or "cumulative".

graphics

Character. "auto", "base" or "ggplot2".

points

Character of Logical. Plot points. "auto", TRUE, FALSE.

log.count

Logical. Logarithm of package downloads.

smooth

Logical. Add smoother.

se

Logical. Works only with graphics = "ggplot2".

f

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

package.version

Logical. Add latest package release dates.

r.version

Logical. Add R release dates.

population.plot

Logical. Plot population plot.

population.seed

Numeric. Seed for sample in population plot.

multi.plot

Logical.

same.xy

Logical. Use same scale for multiple packages when graphics = "base".

legend.loc

Character.

r.total

Logical.

dev.mode

Logical. Use packageHistory0() to scrape CRAN.

...

Additional plotting parameters.

Value

A base R or ggplot2 plot.

Examples

1
2
3
4
5
6
7
## Not run: 
plot(cranDownloads(packages = c("Rcpp", "rlang", "data.table")))
plot(cranDownloads(packages = c("Rcpp", "rlang", "data.table"), when = "last-month"))
plot(cranDownloads(packages = "R", from = "2020-01-01", to = "2020-01-01"))
plot(cranDownloads(packages = "R", from = 2020))

## End(Not run)

lindbrook/packageRank documentation built on Sept. 16, 2020, 5:58 a.m.