Skip to contents

Export ggplot objects to individual PNG files in a directory

Usage

export_plots_png(plots, dir, dpi = 300, width = 8, height = 8)

Arguments

plots

A list of ggplot objects (named or unnamed).

dir

The directory path to write the PNGs to.

dpi

Resolution of the PNG files.

width

Width of each PNG in inches.

height

Height of each PNG in inches.

Value

The directory path (invisibly).