save_kpb_graph: Save KPB Graph

View source: R/assemble-graphs.R

save_kpb_graphR Documentation

Save KPB Graph

Description

Converts a ggplot2 graphic into an output format that files the style I like to use.

Usage

save_kpb_graph(
  filename,
  plot = last_plot(),
  device = NULL,
  width = 6.5,
  units = "in"
)

Arguments

filename

Character vector giving the output file path

plot

Ggplot graph to save. Default's to the last plot.

device

A graphical device to use to print to. Default is NULL in which case the device will be assumed based on the extension given the output file.

width

Numerical scalar giving the width of the output. Default is 6.5.

units

Character scalar giving the units in which the width is provided. Default equals 'in'.


kbrevoort/kpbtemplates documentation built on May 31, 2024, 12:29 p.m.