[R] How to scale circle sizes in VennDiagram using draw.triple.venn

Ulrik Stervbo ulrik.stervbo at gmail.com
Thu Dec 22 23:33:47 CET 2016


Hi Yung-Chih,

This works for me:

library(Vennerable)
data("StemCell")

venn_res <- Venn(StemCell[1:3])
plot(venn_res, doWeights = TRUE)

HTH
Ulrik

On Thu, 22 Dec 2016 at 20:54 Yung-Chih Lai <yungchihlai at gmail.com> wrote:

> Hi Ulrik,
>
> It seems that VennDiagram cannot draw weighted diagrams. Many thanks for
> your information.
>
> Best,
>
> Gary
>
> On Fri, Dec 16, 2016 at 4:09 PM, Ulrik Stervbo <ulrik.stervbo at gmail.com>
> wrote:
>
> I usually use the package Vennerable for all my Venn needs. It also has
> the option to draw weighted diagrams.
>
> HTH
> Ulrik
>
> Yung-Chih Lai <yungchihlai at gmail.com> schrieb am Fr., 16. Dez. 2016,
> 21:40:
>
> Hi,
>
>
> The below is the command I used to create a Venn diagram with three sets.
> However, the three circle sizes are the same. Could you show me how to
> adjust the circle size based on the area size? Many thanks.
>
> grid.newpage()
>
> draw.triple.venn(area1 = 9737, area2 = 13329, area3 = 6300, n12 = 8612, n23
> = 6176, n13 = 5781, n123 = 5748, category = c("G8_13", "G8_14", "G8_15"),
> lty = "blank", fill = c("pink", "light blue", "orange"))
>
>
> Best,
>
>
> Gary
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list