d3Network
d3Network copied to clipboard
d3Network generates html in the console vice popping up a webpage
When I run the d3Network package I get the below scrolling html in the console vice a webpage with the network depicted. The sample is directly off of the d3Network package site. -Jake
require(d3Network) Loading required package: d3Network Source <- c("A", "A", "A", "A", "B", "B", "C", "C", "D") Target <- c("B", "C", "D", "J", "E", "F", "G", "H", "I") NetworkData <- data.frame(Source, Target) d3SimpleNetwork(NetworkData, width = 400, height = 250)
<!DOCTYPE html>
<meta charset="utf-8">
<body>
Hi
You'll need to specify a file to save the network to, otherwise it is just outputted to the console.
Also take a look at the new implementation of the package at: http://christophergandrud.github.io/networkD3