Question: what is ggsave in r?
Answer: Source: R/save.r. ggsave.Rd. ggsave() is a convenient function for saving a plot. It defaults to saving the last plot that you displayed, using the size of the current graphics device. It also guesses the type of graphics device from the extension.