README.md

d3Venn

Introduction

The d3Venn package is a wrapper, or htmlwidget, for venn.js.

There is already the package (https://github.com/timelyportfolio/d3vennR) doing basically the same. However, the code there is not maintained anymore and uses partially legacy code from htmlwidget.

The D3 library has a rich interface for changing the look and feel of the generated plots. This package does not provide any functionality to mingle with the D3 framework itself (refer to r2d3 if you are looking for this functionality), but purely provide a widget for Venn diagrams.

Installation

remotes::install_github("thothal/d3Venn")

Basic Usage

d3Venn(data.frame(sets  = I(list("A", "B", list("A", "B"))),
                  size  = c(10, 10, 2),
                  label = c("Circles", "Diagrams", "Venn Diagrams")))

d3Venn(data.frame(sets = I(list("A", "B", "C", 
                                list("A", "B"), list("A", "C"), list("B", "C"),
                                list("A", "B", "C"))),
                  size = c(20, 20, 20, 5, 5, 5, 2.5),
                  label = c("Orphan", "Super Powers", "Cape",
                            "Spiderman", "Batman", "Wonderwoman",
                            "Superman")),
       c("#E41A1C", "#377EB8", "#4DAF4A"))



thothal/d3Venn documentation built on Dec. 31, 2020, 8:38 a.m.