radialNetwork: Radial Network Diagrams

Description Usage Arguments Examples

Description

Create d3.js radial network diagrams with helpful interactivity. These diagrams are based off the code from this gist.

Usage

1
2
radialNetwork(List, options = list(), tasks = NULL, width = NULL,
  height = NULL)

Arguments

List

a hierarchical list object with a root node and children.

options

list of options for the radialNetwork.

tasks

list of htmlwidgets::JS functions to perform after the the radialNetwork is rendered.

width

numeric width for the network graph's frame area in pixels (if NULL then width is automatically determined based on context)

height

height for the network graph's frame area in pixels (if NULL then height is automatically determined based on context)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
radialNetwork(
  jsonlite::fromJSON( 
   paste0(
     readLines(
       "https://gist.githubusercontent.com/mbostock/1093025/raw/a05a94858375bd0ae023f6950a2b13fac5127637/flare.json"
     )
     ,collapse = "\n"
   ),
   simplifyDataFrame=FALSE
  )
)

## End(Not run)
  

timelyportfolio/radialNetworkR documentation built on May 31, 2019, 2:01 p.m.