-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom x-positions for nodes in Sankey plot #108
Comments
Hi, I am also interested in the possibility of customize the nodes x-position in the Sankey plot. Thank you. All the best, |
+1 I would love this as well. |
- has several modifications from networkD3 sankey.js - included fixes and features from unmerged pull requests: - d3/d3-plugins#124: Fix nodesByBreadth to have proper ordering - - d3/d3-plugins#120: Added 'l-bezier' link type - d3/d3-plugins#74: Sort sankey target links by descending slope - d3#4: Add horizontal alignment option to Sankey layout - added option numberFormat, default being ",.5g" (see , fixes christophergandrud/networkD3#147) - added option NodePosX, fixes christophergandrud/networkD3#108 - added option to force node ordering to be alphabetical along a path (only works well with trees with one parent for each node, but might fix christophergandrud/networkD3#153)
Changelog: - ported to D3 v4 - based on https://github.com/d3/d3-sankey - added several modifications from networkD3 sankey.js - included fixes and features from unmerged pull requests: - d3/d3-plugins#124: Fix nodesByBreadth to have proper ordering - d3/d3-plugins#120: Added 'l-bezier' link type - d3/d3-plugins#74: Sort sankey target links by descending slope - d3/d3-sankey#4: Add horizontal alignment option to Sankey layout - added option numberFormat, default being ",.5g" (see , fixesristophergandrud/networkD3#147) - added option NodePosX, fixes christophergandrud/networkD3#108 - added option to force node ordering to be alphabetical along a path (only works well with trees with one parent for each node, but might fix christophergandrud/networkD3#153)
I have been using the sankeyD3 package to create SankeyNetworks and the 'NodePosX' feature isn't working for me yet. I tried to edit the above example from akraemer007 to include the X positions of the nodes, but it's still not working in the way that he had originally wanted. Am I missing something or is there a bug in the package for this feature?
|
The |
I thought I was. The code I posted was using the sankeyD3 package downloaded from GitHub, using the instructions from here. However, the code doesn't work in the example that I posted. |
Better to ask over there then. This is the repo for networkD3. |
Note that @SchmidtPaul give an answer here. |
Hi,
First, thanks for you work on this very useful package. Is it possible to add a custom x-positions argument for nodes in Sankey plot? I want to use it with taxonomic data in combination with the phyloseq package (bioconductor) but I need to choose the position of nodes for this.
I am not comfortable with javascript but it seems relatively easy to allow this (e.g. http://stackoverflow.com/questions/21539265/d3-sankey-charts-manually-position-node-along-x-axis).
Thanks again,
The text was updated successfully, but these errors were encountered: