util.ggsave: ggsave wrapper to save svg and png at the same time

View source: R/util.ggsave.R

util.ggsaveR Documentation

ggsave wrapper to save svg and png at the same time

Description

ggsave wrapper to save svg and png at the same time

Usage

util.ggsave(filename, save.svg = TRUE, save.png = TRUE, ...)

Arguments

filename

File name to create on disk (without file ending).

save.svg

TRUE/FALSE save to svg

save.png

TRUE/FALSE save to png

...

Other arguments passed on to ggsave

Details

ggsave wrapper to save svg and png at the same time

Examples

## Not run: 
library(ggplot2)
# create a simple plot:
ptest <- ggplot(mtcars, aes(x=hp, y=qsec)) +
           geom_point()

# Save:
util.ggsave(plot=ptest, filename="test", path="C:/plots", width=12, height=12, dpi=300)

## End(Not run)


EFForTS-B10/Refforts documentation built on March 26, 2023, 5:45 p.m.