qSave: Custom settings for ggsave

Description Usage Arguments Examples

View source: R/qSave.r

Description

Custom preset settings for ggsave, with custom sizes for PPT presentations.

Usage

1
2
qSave(plot = NULL, filename = "", folder = "figs", dpi = 700,
  size_ppt = "quarter", height = 0, width = 0)

Arguments

plot

= plot object (without quotes) filename = filename including folder structure from working directory dpi = dpi setting size_ppt = size parameter, in parts of a powerpoint slide ("quarter", "half high", "half wide", or "full") height = custom height width = custom width

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## After creating plot, use qSave() to save the plot with preset options

## Filename created from the supplied plot object name, folder "./Gfx"
## created in working directory, plot saved with default (quarter ppt) size.
qSave(plot = plt.test)

## Saved with custom file name, with size half heigh full width
qSave(plot = plt.test, filename = "Gfx/CUSTOM_NAME.png", size_ppt = "halfwide")

## Saved in custom folder, created if it doesn't already exist
qSave(plot = plt.test, folder = "CUSTOM_FOLDER")

bjeil/beTools documentation built on May 20, 2019, 2:07 p.m.