Skip to content
Circle plot with bundled edges
R JavaScript CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R pkgdown Sep 16, 2017
docs pkgdown Sep 16, 2017
inst Add full name tooltip May 28, 2016
man vignette and pkgdown upd Sep 16, 2017
vignettes pkgdown Sep 16, 2017
.Rbuildignore vignette and pkgdown upd Sep 16, 2017
.gitignore vignette and pkgdown upd Sep 16, 2017
.travis.yml travis Jun 18, 2015
DESCRIPTION vignette and pkgdown upd Sep 16, 2017
NAMESPACE CRAN release Nov 15, 2015
README.md Add example graph to README.md May 2, 2019
_pkgdown.yml pkgdown Sep 16, 2017
edgebundleR-example.png use better example image May 2, 2019
edgebundleR.Rproj initial upload Apr 4, 2015

README.md

Circle plot with bundled edges

Travis-CI Build Status CRAN_Status_Badge

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 or here) and the package is based on the htmlwidgets framework.

Many thanks to timelyportfolio for some major improvements.

example graph

Installation

You can install edgebundleR from Github using the devtools package as follows:

# install.packages("devtools")
devtools::install_github("garthtarr/edgebundleR")

Or you can get it on CRAN:

install.packages("edgebundleR")

Usage

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 keys

The 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.

You can’t perform that action at this time.