5.2 Portable Network Graphics
For .png
files, things are very similar to .tiff
except that we don’t need to specify a compression:
png("test_gg.png", width = 17.35, height = 23.35, units = "cm", res = 300)
theme_set(theme_bw(base_size = 10))
theme_update(axis.text = element_text(size = 17.5, face = "italic"))
print(p_ggplot)
invisible(dev.off())