save_fig: Save a figure

Description Usage Arguments

View source: R/save_fig.R

Description

save_fig saves a figure to a local directory

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
save_fig(
  filename,
  width,
  height,
  units = "in",
  res = 200,
  type = "png",
  suffix = "",
  FUN = NULL,
  ...
)

Arguments

filename

name (including absolute path) for figure

width

width for figure

height

height for figure

units

units for measuring height/width

type

character-vector specifying type of figure (Options: "png", "tif", "jpg"). If length(type)>1, and FUN is specified, then makes muliple plots

suffix

character-vector specifying suffix for different plots, e.g., if type>2

FUN

optional function containing expression (all lines of script) for plotting. Useful if length(type)>1.


James-Thorson/utilities documentation built on Feb. 6, 2022, 2:35 p.m.