Wednesday, May 8, 2019

How to save figures produced in R

If it's produced by ggplot or any programs that use it, you can use this function:
ggsave(filename, plot=last_plot(), device = "eps", path="./Figures", scale=1,dpi = 300)

No comments:

Post a Comment