See ggplot2 for details.

ggsave(filename, plot = last_plot(), device = NULL, path = NULL, scale
  = 1, width = NA, height = NA, units = c("in", "cm", "mm"), dpi = 300,
  limitsize = TRUE, ...)