networkd3 Questions

1

Solved

I am trying to label the x-nodes of a Sankey plot created with networkD3. I see a solution posted here: How to add columnn titles in a Sankey chart networkD3 When I try to set labels manually, howe...
Balcke asked 10/1, 2022 at 19:3

1

Solved

I am making a Sankey chart and I would like to add text on top of each column in order to give a brief description of what is shown. Example code taken from the r-graph galery: library(networkD3) ...
Keble asked 26/3, 2021 at 8:21

1

When I write a report in rmarkdown, all my figures as save automatically under the folder graphs. However, as a Sankey diagram is different, it does not save as a picture (.png, etc...) automatical...
Malarkey asked 5/12, 2020 at 15:1

2

Solved

I want to highlight the whole path when i click on the node to know the whole story of specific node and here's an example- http://bl.ocks.org/git-ashish/8959771 . Please check this link and you w...
Cercus asked 10/9, 2017 at 15:6

2

I am developing an R shiny application that uses several html widgets, notably networkD3, d3heatmap and chorddiag. These widgets work fine separately. However, using them in the same page leave a ...
Fenderson asked 18/9, 2017 at 1:41

1

Solved

I'd like to focus on the flow highlighted above connecting the blue 'Thermal generation' block to the pink 'Electricity grid' block. You'll notice that the flow is 526 TWh, which is row #62 from ...
Sikang asked 19/2, 2019 at 15:23

2

Currently I am trying to create an interactive Sankey with the networkD3 Package following the instructions by Chris Grandrud (https://christophergandrud.github.io/networkD3/). What I don't unders...
Spitfire asked 23/5, 2017 at 10:36

1

++++++++++++++++ Update: I think the answer to my question is that you can't put line breaks in. A colleague pointed out to me the node labels are SVG blocks, which don't support line breaks. +++...
Superconductivity asked 22/6, 2017 at 13:20

1

Solved

I would like to visualize a rank change (i.e. change of the relative order) of US states using a Sankey flow graph. I'm using the networkd3 package and came up with the following: library(dplyr) l...

2

Solved

I have created a interactive visualisation using the following code: library(networkD3) nodes = data.frame("name" = c("node1", "node2","node3", "node4", "node5", "node6", "node7")) links = as.dat...
Hackworth asked 2/5, 2018 at 10:31

1

Solved

As per object, I get a very small plot in Firefox when using sankeyNetwork() from networkd3 in shiny but not in Chrome or RStudio. I have not included any CSS or JS in the script - the code below ...
Bantling asked 3/7, 2018 at 1:3

2

Solved

In the r-markdown document given below, I use tabbed sections to display sankey plots. However, when a sankey plot is in a tab other than the first, adjusting (using htmlwidgets::onRender functio...
Gravure asked 27/3, 2018 at 9:32

1

Solved

I am trying to build sankey plot using networkD3 library. I have following code and data: # Plotting the Sankey network diagram nodes = data.frame("name" = c("Mamalian", # Node 0 "Avian", # Nod...
Rosanne asked 26/1, 2018 at 9:54

2

Solved

I use interactive output created by networkD3 package in R. I know how to save the output as html page, but I also need to save the 'static' version of the diagram as .png file. The code looks lik...
Slickenside asked 28/1, 2016 at 8:50

0

I'm tyring to make a graph in which different link categories have different colors, I use this as input (sample): source target cat weight <fctr> <fctr> <chr> <dbl> 1 hu...
Stearoptene asked 31/12, 2017 at 13:23

1

I created a sankey diagram like this: #install.packages("networkD3") library(networkD3) nodes = data.frame("name" = c("Retour", # Node 0 "niet tevreden/ontevreden", # Node 1 "fout", # Node 2 ...
Armyn asked 29/12, 2017 at 14:23

2

Solved

I would like to visualize some deeply nested data using networkD3. I can't figure out how to get the data into the right format before sending to radialNetwork. Here is some sample data: level &l...
Enate asked 15/12, 2016 at 5:54

4

Solved

The networkD3 package (see here and here) allows a user to create simple interactive networks: # Load package library(networkD3) # Create fake data src <- c("A", "A", "A", "A", "B", "B", "C",...
Schoolmate asked 8/2, 2016 at 22:2

1

Solved

I have a sankey plot created in networkD3 package. I would like to modify the colors and transparency of both nodes and links. My data networkD3_data is appended at the end. Question 1: How to mo...
Imperceptive asked 7/10, 2017 at 3:16

1

Solved

I have a simple sankey diagram, generated using networkD3 package inside a shiny app. How can source and/or target nodes be sorted? As you can see in the MWE, by default, neither source nodes (A, ...
Thuja asked 11/9, 2017 at 21:7

1

Solved

I have a Sankey diagram I'm creating in R. It produces the diagram but the node names are placed on the left of the nodes for the right side nodes. I would like all names to be on the right so the ...
Lidalidah asked 16/8, 2017 at 17:54

1

Solved

I want to color vertices on a "large" graph (less than 500 nodes) according to their centrality, and allow the user to delete an edge or vertex on click events. When a vertex or edge is deleted, a ...
Mettah asked 27/5, 2017 at 0:43

1

I am trying to use networkD3 and shiny to visualize some data. I would like to have an action happen when a node in a graph is clicked. I am using the diagonalNetwork function as shown in the code ...
Hereditament asked 9/5, 2017 at 15:8

1

Solved

I've created a Sankey diagram in R, using the networkD3 package, that I'd like to save as a static image, using code instead of clicking on 'Export' --> 'Save as Image...'. The current code I've t...
Guth asked 8/5, 2017 at 11:51

1

I have a network where I have characterised each of the nodes with previous analysis- and have assigned the colours as follows: plot.igraph(g, layout=layout.fruchterman.reingold(g), vertex.color=n...
Giantism asked 5/8, 2016 at 16:31

© 2022 - 2024 — McMap. All rights reserved.