Save ggplot to PDF and PNG

ggsave_pdf_and_png(filename_root, plot, width = 4, height = 2.472, ...)

Arguments

filename_root

Root filename (without extension).

plot

ggplot object.

width

plot width in inches.

height

plot height in inches.

...

parameters passed on to ggsave.