美文网首页R - tips
R语言几行代码拼接pdf文件

R语言几行代码拼接pdf文件

作者: 柳叶刀与小鼠标 | 来源:发表于2020-08-14 19:51 被阅读0次
library(qpdf) 
# Merge multiple PDF files into one
## 一行代码搞定
pdf_combine(c("test1.pdf","test2.pdf"),
            output = "joined.pdf")


########################################################## 


########################################################## 

library(ggplot2)

library(meta)

library(dplyr)

library(tibble)

library(tidyr)

options(stringsAsFactors = F)

rm(list=ls()) 


# source("http://bioconductor.org/biocLite.R")
# biocLite("EBImage")

library("EBImage")

library(OpenImageR)


lenac1 <- readImage('test1.png')
lenac2 <- readImage('test2.png')
lenac3 <- readImage('test3.png')

lenacomb <- combine(lenac1, lenac2 ,lenac3)

display(lenacomb,method="raster",all=T)

png(file = 'lenacomb.png', width = 1200, height = 1200)
display(lenacomb,method="raster",all=T)
dev.off()

相关文章

网友评论

    本文标题:R语言几行代码拼接pdf文件

    本文链接:https://www.haomeiwen.com/subject/nwsndktx.html