Saves ggplot or ezplot objects to png (with useful defaults).
ez_png(
g,
file,
width = 1200,
height = 600,
res = 72,
resx = 1,
...,
vp = NULL,
dir.create = FALSE,
check = TRUE
)A ggplot or ezplot object.
A png file path.
Image width (in pixels). Default is 1200.
Image height (in pixels). Default is 600.
Resolution (PPI) of output image. Default is 72.
Resolution multiplier. Default is 1.
Further arguments to pass to png().
A viewport object created with grid::viewport.
Logical. If TRUE, creates the directory to save
into. Default is FALSE.
Logical. If TRUE, opens png file after saving. Default is TRUE.