Это было бы очень легко с моим nVennR
пакетом.С таблицей, хранящейся в myT
,
> library(nVennR)
> grad <- subset(myT, Method == "Gradient")$Compound
> iso <- subset(myT, Method == "Isocratic")$Compound
> hil <- subset(myT, Method == "HILIC")$Compound
> myV <- plotVenn(list(Gradient=grad, Isocratic=iso, HILIC=hil))
> listVennRegions(myV)
$`0, 0, 1 (HILIC)`
[1] "Methyltertbutylether"
$`0, 1, 0 (Isocratic)`
[1] "Acetonirile" "Acetone"
$`1, 0, 0 (Gradient)`
[1] "Methanol" "Water"
$`1, 0, 1 (Gradient, HILIC)`
[1] "Isopropanol"
$`1, 1, 1 (Gradient, Isocratic, HILIC)`
[1] "Toluene"
> listVennRegions(myV, na.rm = F)
$`0, 0, 0 ()`
[1] NA
$`0, 0, 1 (HILIC)`
[1] "Methyltertbutylether"
$`0, 1, 0 (Isocratic)`
[1] "Acetonirile" "Acetone"
$`0, 1, 1 (Isocratic, HILIC)`
[1] NA
$`1, 0, 0 (Gradient)`
[1] "Methanol" "Water"
$`1, 0, 1 (Gradient, HILIC)`
[1] "Isopropanol"
$`1, 1, 0 (Gradient, Isocratic)`
[1] NA
$`1, 1, 1 (Gradient, Isocratic, HILIC)`
[1] "Toluene"
Вы также получаете диаграмму Венна: