multiggsave: Save ggplot in multiple file formats simultaneously.

Description Usage Arguments Examples

View source: R/multiggsave.R

Description

Save ggplot in multiple file format simultaneously. User can input the specific file types. Defaults are PDF and PNG.

Usage

1
2
3
4
5
6
multiggsave(
  filename,
  width = dev.size()[1],
  height = dev.size()[2],
  filetypes = c("pdf", "png")
)

Arguments

filename

Name of file

width

Width of plot (defaults to current graphics device width)

height

Height of plot (defaults to current graphics device height)

filetypes

Vector of file types to save.

Examples

1
2
ggplot(mtcars, aes(mpg, wt)) + geom_point()
multiggsave("multiggsave-test")

zmorrissey/commonR documentation built on Sept. 15, 2021, 2:12 p.m.