ggsave_f: Custom ggsave function

Description Usage Arguments Details

View source: R/graphics.R

Description

Allows for multiple file formats

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ggsave_f(
  filename,
  filepath = NULL,
  plt = ggplot2::last_plot(),
  device = c("pdf", "png", "wmf"),
  perspective = c("4.3", "16.9"),
  pWidth = 6,
  Units = "in",
  dpi = 300,
  verbose = F
)

Arguments

filename

filename

plt

plot to be printed

device

vector of graphic device(s) for output. pdf and png use Cairo.

perspective

vector of perspectives to plot

pWidth

plot width

Units

pWidth units

dpi

image resolution

verbose

logical to provide feedback

path

path where plots should be saved

Details

If verbose, return vector of filenames created else nothing


duanxd1/gfuns documentation built on March 7, 2020, 12:46 a.m.