Closed bschilder closed 1 year ago
Hi Brian -- I must admit that I never planned to support 3D networks with this package. Perhaps have a look at the more advanced tidygraph
and ggraph
packages, in case they do support a z-dimension?
Thanks, @briatte .
ggraph
As far as I can tell (I've been testing it quite a bit lately), ggraph
doesn't support 3D plots. It also doesn't convert to plotly objects very well via plotly::ggplotly()
.
tidygraph
tidygraph
may very well be useful for preparing 3D graph objects, but doesn't have any plotting functions itself (to my knowledge).
HPOExplorer
Instead, I've implemented some functions within HPOExplorer
to
facilitate 3D interactive network visualization using plotly
as the underlying engine.
https://neurogenomics.github.io/HPOExplorer/reference/network_3d.html
This function is designed for the specific use case of Human Phenotype Ontology data, but some of the internal functions like igraph_to_plotly
may nevertheless be instructive for users who faced an issue similar to mine:
https://github.com/neurogenomics/HPOExplorer/blob/master/R/igraph_to_plotly.R
You're right, Plotly does seem like the way to go!
You're right, Plotly does seem like the way to go!
Indeed! Though note that atm there's a bit more support for graph objects in the python implementation of plotly (the docs in the link you provided). For the R implementation, some preprocessing to convert igraph
objects to a data.frame
is required.
Hello, thanks for the package!
I'm trying to generate a dataframe containing the coordinates of a 3D network layout. In the example below, when I specify
dim=3
, a new column "NA" is generated, which I assume the z-axis coordinate of each node. However, there is no corresponding "zend" column to specify where each edge/segment should end.Do you know how I might return this information?
Reprex
Best, Brian
Session info