Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nredell/chordViz
- Owner: nredell
- Created: 2017-01-09T05:56:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-26T04:10:36.000Z (over 5 years ago)
- Last Synced: 2024-04-22T02:58:26.023Z (7 months ago)
- Topics: chord-diagram, d3, htmlwidget, r-package
- Language: JavaScript
- Size: 370 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-shiny-extensions - chordViz - Create interactive chord diagrams in R. (Visualization / Network and Graph Data)
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)