ez_png {ezplot}R Documentation

ez_png

Description

Saves ggplot or ezplot objects to png (with useful defaults).

Usage

ez_png(
  g,
  file,
  width = 1200,
  height = 600,
  res = 72,
  resx = 1,
  ...,
  vp = NULL,
  dir.create = FALSE,
  check = TRUE
)

Arguments

g

A ggplot or ezplot object.

file

A png file path.

width

Image width (in pixels). Default is 1200.

height

Image height (in pixels). Default is 600.

res

Resolution (PPI) of output image. Default is 72.

resx

Resolution multiplier. Default is 1.

...

Further arguments to pass to png().

vp

A viewport object created with grid::viewport.

dir.create

Logical. If TRUE, creates the directory to save into. Default is FALSE.

check

Logical. If TRUE, opens png file after saving. Default is TRUE.


[Package ezplot version 0.7.13 Index]