ggsave_mac_multi: My custom ggsave for macbook pro (Multi-plots)

Description Usage Arguments Value Examples

View source: R/utils.R

Description

My custom ggsave for macbook pro (Multi-plots)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ggsave_mac_multi(
  plot_objs,
  paths,
  width = 25.6,
  height = 16,
  units = "cm",
  dpi = "retina",
  scale = 1,
  device = NULL,
  ...
)

Arguments

plot_objs

plot objects

paths

Path of the directory to save plot to: path and filename are combined to create the fully qualified file name. Defaults to the working directory.

width

Plot size in units ("in", "cm", or "mm").

height

Plot size in units ("in", "cm", or "mm").

units

Plot size in units ("in", "cm", or "mm").

dpi

Plot resolution. Also accepts a string input: "retina" (320), "print" (300), or "screen" (72). Applies only to raster output types.

scale

Multiplicative scaling factor.

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).

...

passed to ggsave

Value

print plots and save to files

Examples

1
# ggsave_mac_multi(plot_objs, c("plot_1.png","plot_2.png"))

Lightbridge-AI/lbr documentation built on Dec. 27, 2021, 8:09 p.m.