venn图ggVennDiagram

2023-01-11  本文已影响0人  胡童远
install.packages("ggVennDiagram")
library("ggVennDiagram")
library(ggplot2)

mydata2<-list(G1,G2,G3,G4,G5,G6)

p=
ggVennDiagram(mydata2,label="count",label_alpha=0,
category.names=c("G1","G2","G3","G4","G5","G6")) +
scale_fill_gradient(low="white",high= "white") +
theme(legend.position = "none")

ggsave(p, filename="ALL/out_venn_G.pdf")

label = "percent" # 只显示百分比

参考:
R语言绘图—Veen(韦恩图) 简书
R语言绘图—Veen(韦恩图)知乎

上一篇下一篇

猜你喜欢

热点阅读