Running R Scripts with Plots

后端 未结 5 1318
情书的邮戳
情书的邮戳 2020-12-09 02:36

I have a small shell script (bash) which runs a R script which produces a plot as output. Everything works fine but immedietly after the plot is rendered R quits. Is there a

5条回答
  •  -上瘾入骨i
    2020-12-09 03:26

    One solution would be to write the plot out to pdf instead:

    pdf(file="myplot.pdf")
    
    ##your plot command here
    plot( . . . )
    
    dev.off()
    

提交回复
热议问题