pubpng: Output ggplot object to PNG files with good quality settings.

View source: R/functions.R

pubpngR Documentation

Output ggplot object to PNG files with good quality settings.

Description

Output ggplot object to PNG files with good quality settings.

Usage

pubpng(file, plot, width = 1600, height = 1400, res = 200)

Arguments

file

Output file path and name.

plot

ggplot object or command.

width

Width of plot, in pixels. Defaults to 1600.

height

Height of plot, in pixels. Defaults to 1400.

res

Resolution, in ppi. Deagults to 200.

Value

TRUE if succesful, while file is saved to disk.

See Also

grDevices::png


flr/ggplotFL documentation built on Feb. 10, 2024, 3:57 p.m.