Note that there are some explanatory texts on larger screens.

plurals
  1. POscaling triple Venn diagram in R with VennDiagram package
    primarykey
    data
    text
    <p>Does anyone know how to get the R package VennDiagram to scale the circles of a Venn diagram containing 3 intersecting sets according to set size?</p> <p>I can achieve such scaling with the venneular package, but I find this a bit limited in terms of other graphical options compared to VennDiagram.</p> <p>The VennDiagram package documentation suggests setting the argument 'scaled' to TRUE ought to do the trick, but I find this produces 3 circles of equal size. </p> <p>The package documentation does cryptically suggest that the scaled argument may only work for certain diagrams:</p> <pre><code>?draw.triple.venn </code></pre> <p>reveals:</p> <p>scaled: "Boolean indicating whether to scale circle sizes in certain Euler diagrams according to set sizes or not" </p> <p>and</p> <pre><code>?venn.diagram #Argument Venn Sizes Class Description #scaled 2, 3 logical Enable scaling for two-set and certain three-set Euler diagrams. </code></pre> <p>A toy example of my code:</p> <pre><code>require(VennDiagram) venn.plot &lt;- draw.triple.venn( area1 = 70, area2 = 250, area3 = 500, n12 = 30, n23 = 60, n13 = 10, n123 = 5, category = c("C1", "C2", "C3"), fill = c("blue", "red", "green"), scaled=TRUE) tiff(filename = "test.tiff", compression = "none",type = "quartz",antialias = "none") grid.draw(venn.plot) dev.off() </code></pre> <p>Similarly this code using the 'venn.diagram' function doesn't produce the required scaling:</p> <pre><code>venn.diagram(x=list(A=c(1:15,16:20), B=c(6:15,21:30,100:150), C=c(11:30,200:300)), filename="test.tiff", fill = c("blue", "yellow", "red"), scaled=TRUE) </code></pre> <p>Thanks v.much</p> <p>Jim</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload