save_kpi: Save KPI plot

View source: R/save_kpi.R

save_kpiR Documentation

Save KPI plot

Description

Save a plot to a number of friendly formats

Usage

save_kpi(
  path,
  format = "screen",
  mode = get_mode(),
  margin = 0.17,
  plot = ggplot2::last_plot(),
  dpi = 300,
  force_path = F,
  portrait = F,
  debug = F
)

Arguments

path

File path

format

A string giving output format ("a3", "a4", or "screen")

mode

Mode of operation. See modes for more.

margin

Margin of plot (in inches). Default of 0.17 matches most printers.

plot

ggplot2 plot

dpi

A number giving DPI

force_path

bool

portrait

bool

debug

bool


Testcenter-Danmark/tcdkhelper documentation built on March 18, 2022, 2:19 p.m.