本文主要是介绍R画Upset韦恩图,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
基于UpSetR画Upset韦恩图
首先data的格式为
setwd('D:\\16_huangjian\\02_DEG')library(ggplot2)
library(readxl)
library(UpSetR)
matrix = read.table("./upsForplot.txt", header=T, row.names=NULL, sep="\t")
nsets = dim(matrix)[2]-1
#pdf(file="upsetview.txt.upsetV.pdf", onefile=FALSE, paper="special", width=10,
#height=5, bg="white", pointsize=12)
upset(matrix, nsets=nsets, sets.bar.color = "#56B4E9", mb.ratio = c(0.5, 0.5),keep.order=T,#sets.x.labepoint.size=6,line.size=1,#number.anglesorder.by = "freq",text.scale=1.8)
#dev.off()
结果
做该图的在线网站:https://www.omicstudio.cn/tool/43
这篇关于R画Upset韦恩图的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!