D3Chord: D3 Chord

Description Usage Arguments Author(s) References Examples

View source: R/D3.R

Description

Creates a html file containing json file and a D3.js Chord diagram Needs json data from the jsonMatrix function

Usage

1
D3Chord(JSON, file_out)

Arguments

JSON

A json object

file_out

the location and name for the output html file

Author(s)

James Thomson

References

https://bl.ocks.org/mbostock/4062006

Examples

1
2
3
4
dm<-matrix(c(11975,1951,8010,1013,5871,10048,16145,990,8916,2060,8090,940,2868,6171,8045,6907), 4,4)
labels<-c("Group1", "Group2", "Group3", "Group4")
json<-jsonMatrix(dm, labels)
D3Chord(json, file_out="chord.html")

jamesthomson/R2D3 documentation built on May 18, 2019, 11:21 a.m.