Skip to contents

Plots data retrieved from get_code_stats(), inspect_package() and returns the results in the console.

Usage

plot_pkg(x, type = c("package", "metric"), ...)

Arguments

x

A tibble from get_code_stats(), inspect_package() or a combined result.

type

One of "package" or "metric". "package" shows a per-package breakdown; "metric" compares packages across each metric.

...

Additional arguments passed to the plotting functions.

Value

Invisibly returns x.

Examples

if (FALSE) { # \dontrun{
# Plot the statistics in pkg_data
plot_pkg(pkg_data, type = "metric")
} # }