ggsave: Wrapper for ggsave

Description Usage Arguments Value Examples

View source: R/ggsave.R

Description

This function wraps around the ggsave function of gglpot2 (ggsave) by setting the defaults to the SGB standard output.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
ggsave(
  filename,
  wide = FALSE,
  plot = last_plot(),
  device = NULL,
  path = NULL,
  scale = 1,
  width = 3.5,
  height = 2.5,
  units = "in",
  dpi = 600,
  limitsize = TRUE,
  ...
)

Arguments

filename

see documentation of ggsave

wide

boolean (default = FALSE), if TRUE widens the plot to width = 6.5 and height = 4.5

plot

see documentation of ggsave

device

see documentation of ggsave

path

see documentation of ggsave

scale

see documentation of ggsave

width

see documentation of ggsave

height

see documentation of ggsave

units

see documentation of ggsave

dpi

see documentation of ggsave

limitsize

see documentation of ggsave

...

see documentation of ggsave

Value

see documentation of ggsave

Examples

1
ggsave("my_sgb_plot.png")

SchweizerischerGewerkschaftsbund/gsgb documentation built on Dec. 18, 2021, 1 p.m.