美文网首页生信绘图
韦恩图 R 保存成pdf

韦恩图 R 保存成pdf

作者: 一路向前_莫问前程_前程似锦 | 来源:发表于2020-11-09 20:28 被阅读0次
    library(VennDiagram)
    
    A <- rownames(diffLab)
    B <- rownames(diffLab_tcga)
    
    ###### Two sets
    dataForVennDiagram <- list(GSE20916=A,TCGA=B)
    
    vennDiagramColors <- c("dodgerblue", "darkorange1")
    vennPlot <- venn.diagram(dataForVennDiagram,
                             filename = NULL,
                            # imagetype = 'tiff',
                             col = vennDiagramColors,
                             fill = vennDiagramColors,
                             lwd = 2,
                             alpha = 0.25,
                             fontfamily = 'sans',
                             margin = 0.1,
                             cat.dist = 0.03,
                             #cat.default.pos = "outer",
                             #cat.pos = c(-27, 27, 135),
                             cat.col = vennDiagramColors,
                             cat.fontface = 'bold',
                             cat.fontfamily = 'sans',
                             cat.cex = 1,
                             cex = 0.75)
    
    pdf(file="proteinGroup_venn.pdf")
    grid.draw(vennPlot)
    dev.off()
    

    相关文章

      网友评论

        本文标题:韦恩图 R 保存成pdf

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