r2d3 (version 1.0)

jsonOverlaps: Data frame to overlaps json

Description

Creates a json file representing overlaps from a data frame. This json will work with D3 Venn

Usage

jsonOverlaps(data, overlaps = 2)

Arguments

data
A data frame to be converted to json. The first column should represent the item, and the second column should represent the group it belongs to
overlaps
The degree of overlaps to be considered. Defaults to the total number of groups

Examples

Run this code
data(browsers)
JSON<-jsonOverlaps(browsers, overlaps = 4)

Run the code above in your browser using DataLab