knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Based on Wm Leler's radial network, this R htmlwidget
provides a highly interactive radial network with a UI for zoom, collapse, and search. For more details, see the BuildingWidgets post Week 21 | radialNetwork.
#devtools::install_github("timelyportfolio/radialNetworkR") library(radialNetworkR) radialNetwork( jsonlite::fromJSON( paste0( readLines( "https://gist.githubusercontent.com/mbostock/1093025/raw/a05a94858375bd0ae023f6950a2b13fac5127637/flare.json" ) ,collapse = "\n" ), simplifyDataFrame=FALSE ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.