character. Path to file. The file-ending determines what kind of file is written, e.g., "filename.pdf" will write a pdf document, "filename.jpg" a JPEG image.
...
Further arguments passed to ggsave, e.g., width and height to determine the figure size.
Value
If x is a list of ggplot objects, one file is written for each list component. If x is a single ggplot object, one file is written.