slrsave: ggsave function with default settings for SLR annual report

View source: R/slrsave.R

slrsaveR Documentation

ggsave function with default settings for SLR annual report

Description

ggsave function with default settings for SLR annual report

Usage

slrsave(
  file = NULL,
  plot = ggplot2::last_plot(),
  width = 3.14961,
  height = 3.54331,
  units = "in",
  dpi = 600,
  device = "tiff",
  family = "Calibri Light"
)

Arguments

file

File name to create on disk.

plot

Plot to save

width

Width in units ("in", "cm", or "mm").

height

Height in units ("in", "cm", or "mm").

units

Units ("in", "cm", or "mm")

dpi

Plot resolution.

device

Device to use. Can either be a device function (e.g. png()), or one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only).

family

Font family


swehip/slrplotfun documentation built on Oct. 25, 2022, 10:50 a.m.