plotHandler: Plot handler

Description Usage Arguments

View source: R/graphics.R

Description

Function to save and display plots

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plotHandler(
  visPlot = FALSE,
  makeObject = FALSE,
  savePlots = TRUE,
  filename = NULL,
  path = NULL,
  plt = ggplot2::last_plot(),
  device = c("pdf", "png", "wmf"),
  dpi = 300
)

Arguments

visPlot

logical to display plot

makeObject

logical to save plots in environment

savePlots

logical to save plots as image

filename

filename to pass to ggsave_f

path

path where plots should be saved to pass to ggsave_f

plt

plot to be printed to pass to ggsave_f

device

list of formats to be saved to pass to ggsave_f

dpi

image resolution to pass to ggsave_f


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