writing png plots into a pdf file in R

后端 未结 3 1177
青春惊慌失措
青春惊慌失措 2021-01-04 06:05

I have to create a bunch of graphs with a lot of data points. So far, I\'ve been doing this by plotting all of them into one pdf-file:

pdf(\"tes         


        
3条回答
  •  感情败类
    2021-01-04 06:41

    You can convert the PNG files to PDF with ImageMagick

    for i in *.png
    do
      convert "$i" "$i".pdf
    done
    

    and concatenate the resulting files with pdftk.

    pdftk *.png.pdf output all.pdf
    

提交回复
热议问题