Save all plots already present in the panel of Rstudio

后端 未结 5 1313
一生所求
一生所求 2021-02-02 12:10

I\'ve made different plots (more than a hundred) for a project and I haven\'t capture them on the way (yes it\'s bad , i know). Now, I need to save them all at once but without

5条回答
  •  -上瘾入骨i
    2021-02-02 12:25

    If you enter the following function all that will follow will be save in a document:

    pdf("nameofthedocument.pdf")
    
    plot(x~y)
    plot(...
    
    
    dev.off()
    

    You can also use tiff(), jpg()... see ?pdf

提交回复
热议问题