Output ggplot object to PNG files with good quality settings.

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