ggsave: ggsave Save a ggplot with sensible defaults

Description Usage Arguments

View source: R/save.r

Description

ggsave Save a ggplot with sensible defaults

Usage

1
2
3
4
ggsave(plot, filename = default_name(plot),
  device = default_device(filename), scale = 1,
  width = graphics::par("din")[1], height = graphics::par("din")[2],
  grid = "normal", dpi = 96, ...)

Arguments

plot

plot to save

filename

file name/path of plot

device

device to use, automatically extract from file name extension

scale

scaling factor

width

width (in inches)

height

height (in inches)

grid

grid to use, normal for white on pale grey, print for pale grey on white

dpi

dpi to use for raster graphics

...

other arguments passed to device function


hadley/ggplot1 documentation built on Aug. 19, 2019, 2:42 p.m.