plot_pkg: plot_pkg

View source: R/misc_pm.R

plot_pkgR Documentation

plot_pkg

Description

A function to check and compare the "popularity" of R-packages. It uses the cranlogs-package to get download counts, which are then plotted over time. to be extended

Usage

plot_pkg(
  pkg_names,
  start_date = "2012-01-01",
  log_scale = FALSE,
  monthly = FALSE
)

Arguments

pkg_names

character string of package names to compare

start_date

character in ISO-format, default is "2012-01-01"

log_scale

logical, defines y-scale. Default is FALSE.

monthly

logical, Should the download counts be aggregated by month? Default is FALSE.

Value

a ggplot-object

Examples

plot_pkg(c("gee","geepack"))



imbeimainz/IMBEImisc documentation built on Nov. 14, 2024, 1:22 p.m.