Skip to content

geom_GeomEdgeParallelPath #1766

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

Closed
GautierStauffer opened this issue May 14, 2020 · 1 comment
Closed

geom_GeomEdgeParallelPath #1766

GautierStauffer opened this issue May 14, 2020 · 1 comment

Comments

@GautierStauffer
Copy link

GautierStauffer commented May 14, 2020

Hi,

I am not sure in which detail I should go here (it is the first time I report an issue) but I am using ggraph to plot some networks and it would be awesome if I could use plotly to make the graph interactive ! So as suggested in the warnings (see below) resulting from typing ggplotly(g) where g is the graph I created (using ggraph and geom_edge_parallel()), I open an issue here.

Thanks in anticipation !

Gautier

--

library(tidygraph)
library(ggraph)
library(plotly)

edges<- data.frame(
from=c("A", "A", "B", "D", "C", "D", "E", "B", "C", "D", "K", "A", "M"),
to=c("B", "E", "F", "A", "C", "A", "B", "Z", "A", "C", "A", "B", "K")
)
V=union(edges$from,edges$to)
nodes=data.frame(id=V)

graph <- tbl_graph(nodes = nodes, edges = edges, directed = FALSE)

g=ggraph(graph) + geom_edge_parallel() + geom_node_point() + theme_graph() + geom_node_text(aes(label = id), repel = TRUE)

ggplotly(g)


Warning messages:
1: In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomEdgePath() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues
2: In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomTextRepel() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues

@cpsievert
Copy link
Collaborator

There is a wip attempt for ggraph support that you can try here...#1326

Marking as a duplicate of #566 which I'll update if and when #1326 lands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants