wpsave: Wrap ggsave() to save as .png & .pdf, then load to viewer

View source: R/wpsave.R

wpsaveR Documentation

Wrap ggsave() to save as .png & .pdf, then load to viewer

Description

Wraps ggsave(), but saves plot as both .pdf and .png, then loads plot to viewer.

Usage

wpsave(path, height, width, dpi = 300)

Arguments

path

Path at which to save file. Note that if file extension is specified, it will be stripped.

height

Height in inches.

width

Width in inches.

dpi

Dots per inch, used for .png

Examples

# not run; all three will produce same output
# wpsave("output/figure1", height = 4, width = 4)
# wpsave("output/figure1", height = 4, width = 4, dpi = 1000)

wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.