Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nredell/chordViz

An R package for interactive chord diagrams
https://github.com/nredell/chordViz

chord-diagram d3 htmlwidget r-package

Last synced: 3 months ago
JSON representation

An R package for interactive chord diagrams

Awesome Lists containing this project

README

        

# 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

```r
# Install and load package.
devtools::install_github("nredell/chordViz")
library(chordViz)

# Create an input matrix with random data.
set.seed(224)
m <- matrix(trunc(runif(100, 1, 20)), nrow = 10)

# Create the chord diagram.
chordViz(m, start = 3/2, groupNames = LETTERS[1:ncol(m)])
```

## Chord Diagram from chordViz()

![Chord Diagram](images/chordDiag_1.png)

## Chord Diagram Hovering Over Group 'A'

![Chord Diagram Hovering Over Group 'A'](images/chordDiag_2.png)