Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garthtarr/edgebundleR
Circle plot with bundled edges
https://github.com/garthtarr/edgebundleR
Last synced: about 2 months ago
JSON representation
Circle plot with bundled edges
- Host: GitHub
- URL: https://github.com/garthtarr/edgebundleR
- Owner: garthtarr
- Created: 2015-03-31T01:24:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-23T05:58:14.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T17:32:43.152Z (2 months ago)
- Language: JavaScript
- Homepage: http://garthtarr.github.io/edgebundleR/
- Size: 1.75 MB
- Stars: 67
- Watchers: 8
- Forks: 12
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-shiny-extensions - edgebundleR - Circular layout plots with bundled edges based on D3. (Visualization / Network and Graph Data)
README
# Circle plot with bundled edges
[![Travis-CI Build Status](https://travis-ci.org/garthtarr/edgebundleR.svg?branch=master)](https://travis-ci.org/garthtarr/edgebundleR) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/edgebundleR)](http://cran.r-project.org/package=edgebundleR/) [![](http://cranlogs.r-pkg.org/badges/edgebundleR)](http://cran.r-project.org/package=edgebundleR)
This package allows R users to easily create a hierarchical edge bundle plot. The underlying D3 code was adapted from Mike Bostock's examples (see [here](http://bl.ocks.org/mbostock/7607999) or [here](https://mbostock.github.io/d3/talk/20111116/bundle.html)) and the package is based on the [htmlwidgets](https://github.com/ramnathv/htmlwidgets) framework.
Many thanks to [timelyportfolio](https://github.com/timelyportfolio) for some major improvements.
![example graph](edgebundleR-example.png)
## Installation
You can install `edgebundleR` from Github using the `devtools` package as follows:
```s
# install.packages("devtools")
devtools::install_github("garthtarr/edgebundleR")
```Or you can get it on CRAN:
```s
install.packages("edgebundleR")
```## Usage
```s
library(edgebundleR)
```The main function in the edgebundleR package is `edgebundle()`. It takes in a variety of inputs:
- an igraph object
- a symmetric matrix, e.g. a correlation matrix or (regularised) precision matrix
- a JSON file structured with `name` and `imports` as the keysThe result of the `edgebundle()` function is a webpage that is rendered in the RStudio Viewer pane by default, but also may be exported to a self contained webpage, embedded in an Rmarkdown document or used in a Shiny web application.