An R package to create the Sankey or Ribbon plot.
Questions tagged [riverplot]
30 questions
11
votes
2 answers
Riverplot package in R - output plot covered in gridlines or outlines
I've made a Sankey diagram in R Riverplot (v0.5), the output looks OK small in RStudio, but when exported or zoomed in it the colours have dark outlines or gridlines.
I think it may be because the outlines of the shapes are not matching the…

String
- 123
- 1
- 8
8
votes
2 answers
Label size in sankey plots (riverplot package)
Use case:
I am using the riverplot package to plot sankey charts. I need to adjust the text size of the nodes labels in the plot. The default size is too big in my case.
Problem, what I tried already:
Unfortunately the package does not work with a…

user2030503
- 3,064
- 2
- 36
- 53
3
votes
1 answer
Save a sankey diagram as svg using riverplot
I have created a Sankey diagram using the riverplot package, with the help of the website from google (https://developers.google.com/chart/interactive/docs/gallery/sankey) and the community here.
I am very happy with the graph now and would like to…

Paperwing
- 65
- 4
3
votes
4 answers
Sum each list of numerical values within a list
I would like to attach values to labels in a riverplot in R
I have a list of lists of values, which is required to show flows between nodes, like this:
edges <- list( A= list( C= 10, E= 5 ),
B= list( C= 10 ),
C=list(D…

Jacek Kotowski
- 620
- 16
- 49
3
votes
1 answer
R - riverplot formatting nodes
I have been fiddling around with the riverplot package and have produced some very attractive and illustrative results. I am now trying to produce a somewhat more complicated plot and some of the results that I am getting are a little unexpected. I…

datawookie
- 1,607
- 12
- 20
2
votes
1 answer
R Sankey Diagram using riverplot - Vertical Labels
I am using the riverplot package in R. I am able to make a Sankey diagram. I would like to be able to add a vertical label (preferably on the bottom). I found one example that appears to do this:…

bill999
- 2,147
- 8
- 51
- 103
2
votes
1 answer
ordering nodes in riverplot
I'm currently developing a riverplot diagram with the riverplot package. However, I struggle to get my data ordered on the plot. Let me explain with an example:
library(riverplot)
df.nodes <- cbind.data.frame(c("A", "B", "C", "D", "E", "F", "G",…

Simon H
- 75
- 9
2
votes
1 answer
Riverplot package in R - Sankey diagram colors
I try to create a sankey diagram using the Riverplot package in R with fixed node and edge colors. The colors are given in separate colors in the .csv files
library(riverplot)
# import data
edges = read.csv("sankey_data_edges.csv")
nodes =…

StefanOverFlow
- 389
- 4
- 17
2
votes
1 answer
R - Riverplot package uses - Sankey diagram
I try to draw a sankey chart using riverplot package by January. However my cases is quite complex and I haven't found way to fix my chart so I post this questions, hope this help either find some answer to my questions or way to improve the…

sinhnhn
- 65
- 1
- 7
1
vote
1 answer
R Riverplot remove node labels on one side of Sankey plot
I'm using Riverplot to create Sankey plots and placing them in one plot to create a continuous look with three plots. My problem is that I only want node labels on the outmost left and right nodes, not inside.
I've managed to remove the labels from…

Kylee
- 41
- 5
1
vote
0 answers
How to edit node to node layout and y-values in riverplot script in Rstudio?
Can someone please help me edit this script for riverplot in r? I am having two issues,
1. my y values are not working
2. I need to edit the N1 -> N2 layout
This is the script I have been running, and I have attached the excel spreadsheet I have…

Shannon R
- 11
- 2
1
vote
3 answers
Creating edges for a riverplot
I am hoping to use the riverplot package to create a flow diagram. This package needs 'edges' which are flows between levels. I want to create an edges data structure from a data frame. By way of example here is some code to create my input…

Stephen Clark
- 573
- 3
- 18
1
vote
1 answer
Sankey plot where edges between nodes correspond to an N3 column
I would like to draw a sankey plot based on the below generated data structure where the edges between nodes correspond to an N3 column and their presence and thickness depend on the Value column. For the below dummy data, the plot would look like…

jO.
- 3,384
- 7
- 28
- 38
1
vote
1 answer
Riverplot package in R - error in edges column names
I'm trying to use the Riverplot package in R to make a Sankey diagram, but I'm getting an error message about the column names in the edges frame.
I'm installing the readr and riverplot packages and then doing this:
> my_data <-…

String
- 123
- 1
- 8
1
vote
0 answers
Create list from data.frame
I'm trying to produce a sankey-plot using the package riverplot in R. In order to do that I need to create a riverplot object. Following the vignette here this seems quite straightforward. Unfortunately, it is not.
I get the an error message and am…

Thomas
- 1,392
- 3
- 22
- 38