Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201945

Is there any way to use parallel to speed up a plotVenn () process?

$
0
0

I am trying to make a venn diagram with 15 sets. I could do it with 9, using the nVennR package, but I had to plot it 22 times to compact the result.

myV <- createVennObj(nSets = 9, sNames = c("NN","AdINI","AdTAR",
                                            "NN con NBI",
                                            "NN sin NBI",
                                            "AdINI con NBI",
                                            "AdINI sin NBI",
                                            "AdTAR con NBI",
                                            "AdTAR sin NBI"))

myV <- setVennRegion(myV, c("NN con NBI", "NN"), 4343)
myV <- setVennRegion(myV, c("NN sin NBI", "NN"), 22526)
myV <- setVennRegion(myV, c("AdINI con NBI", "AdINI"), 2032)
myV <- setVennRegion(myV, c("AdINI sin NBI", "AdINI"), 9545)
myV <- setVennRegion(myV, c("AdTAR con NBI", "AdTAR"), 2641)
myV <- setVennRegion(myV, c("AdTAR sin NBI", "AdTAR"), 10125)
i=0
while (i<22) {
        myV <- plotVenn(nVennObj = myV, outFile='democentro.svg')
        i=i+1
}

It took several minutes but the result ended up being what I expected:

[venn diagram with 9 sets][1]

Now I want to do the same for 15 sets ... Because the smaller sets, in the previous chart, are split in two. I've tried to do it but the process never ends, not even for the first plot ... Is there any way to use my computer's full potential for this?

by the way, i'm using windows 10 and i have 16gb of RAM

Sorry for my awful english. My native language is Spanish


Viewing all articles
Browse latest Browse all 201945

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>