Saves a ggplot2 plot to a file in PNG, PDF, or JPG format.
Usage
save_plot(
plot,
filename = "plot",
format = c("png", "pdf", "jpg"),
width = 8,
height = 6,
dpi = 300
)
Saves a ggplot2 plot to a file in PNG, PDF, or JPG format.
save_plot(
plot,
filename = "plot",
format = c("png", "pdf", "jpg"),
width = 8,
height = 6,
dpi = 300
)