packageRank (version 0.1.0)

plot.package_rank_time: Plot method for timeSeriesRank().

Description

Plot method for timeSeriesRank().

Usage

# S3 method for package_rank_time
plot(x, graphics_pkg = "ggplot2",
  log_count = TRUE, pkg_smooth = TRUE, sample_smooth = TRUE,
  f = 1/3, ...)

Arguments

x

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

graphics_pkg

Character. "base" or "ggplot2".

log_count

Logical. Logarithm of package downloads.

pkg_smooth

Logical. Add smoother.

sample_smooth

Logical. lowess background.

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(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