マイクロアレイデータのセットがあり、添付の図に従って表現したいと思います(PowerPointで作成)。Rで利用可能なさまざまなパッケージ(VennDiagram、venneuler、limma)を試しました。ただし、データを比例的に描画したり、値を表示したりすることはできませんでした。
誰もそれを行う方法を知っていますか?
遊ぶコードは以下にあります!
ありがとうございました!
# you might need these:
source("http://www.bioconductor.org/biocLite.R")
biocLite("limma")
library(VennDiagram)
library(limma)
library(venneuler)
# Trial 1: Kind of proportional but difficult to customize for labels and other stuff
su <- venneuler(c(A=162, B=104, C=86, "A&B"=206, "A&C"=112, "B&C"=90 ,"A&B&C"=2433))
plot(su)
# Trial 2: looks nice but not proportional
hw <- c(F,F,F,F,T,T,T,T)
hm <- c(F,F,T,T,F,F,T,T)
hr <- c(F,T,F,T,F,T,F,T)
c4 <- cbind(hw,hm,hr)
e <- vennCounts(c4)
e[1:8,4] <- c(3193,86,104,90,162,112,206,2433)
vennDiagram(e)