项目作者: nredell

项目描述 :
An R package for interactive chord diagrams
高级语言: JavaScript
项目地址: git://github.com/nredell/chordViz.git
创建时间: 2017-01-09T05:56:13Z
项目社区:https://github.com/nredell/chordViz

开源协议:

下载


Create an Interactive Chord Diagram in R

The chordViz package, based on the chorddiag package (http://github.com/mattflor/chorddiag) and
the viz.js D3 library (http://github.com/NPashaP/Viz), is an R htmlwidget that allows the user to create
interactive chord diagrams that emphasize the clarity of directed relationships
between groups on hover/mouseover.

Example

  1. # Install and load package.
  2. devtools::install_github("nredell/chordViz")
  3. library(chordViz)
  4. # Create an input matrix with random data.
  5. set.seed(224)
  6. m <- matrix(trunc(runif(100, 1, 20)), nrow = 10)
  7. # Create the chord diagram.
  8. chordViz(m, start = 3/2, groupNames = LETTERS[1:ncol(m)])

Chord Diagram from chordViz()

Chord Diagram

Chord Diagram Hovering Over Group ‘A’

Chord Diagram Hovering Over Group 'A'