Skip to content

geom_GeomEdgeParallelPath #1766

Closed
Closed

Description

@GautierStauffer

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

Activity

  1. cpsievert commented on May 19, 2020

    @cpsievert
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions