packageRank (version 0.3.0)

plot.package_rank_time: Plot method for timeSeriesRank().

Description

Plot method for timeSeriesRank().

Usage

# S3 method for package_rank_time
plot(x, graphics = NULL, log_count = TRUE,
  smooth = TRUE, sample_smooth = TRUE, f = 1/3, ...)

Arguments

x

Object. An object of class "time_series" created by packageRankTime().

graphics

Character. "base" or "ggplot2".

log_count

Logical. Logarithm of package downloads.

smooth

Logical. Add smoother for selected package.

sample_smooth

Logical. lowess background.

f

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

...

Additional plotting parameters.

Value

A base R or ggplot2 plot.

Examples

Run this code
# NOT RUN {
plot(packageRankTime(packages = "HistData", when = "last-week"))
plot(packageRankTime(packages = c("Rcpp", "rlang", "data.table"), when = "last-month"))
# }

Run the code above in your browser using DataLab