christophergandrud / d3Network

Tools for creating D3 JavaScript network graphs from R.
http://christophergandrud.github.io/d3Network/
171 stars 56 forks source link

d3Network generates html in the console vice popping up a webpage #21

Open luciusdyal opened 10 years ago

luciusdyal commented 10 years ago

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> 

christophergandrud commented 10 years ago

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