d3Network icon indicating copy to clipboard operation
d3Network copied to clipboard

d3Network generates html in the console vice popping up a webpage

Open luciusdyal opened this issue 11 years ago • 1 comments

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> 

luciusdyal avatar Aug 26 '14 19:08 luciusdyal

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

christophergandrud avatar Aug 27 '14 21:08 christophergandrud