You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to group facets by edge variables both row-wise and column-wise. However, geom_graph seems to fail even when setting col_type = "edge". Of course I could use facet_edges instead, but ideally I would like to reproduce the layout of facet_wrap with the lateral panel titles, and not that of facet_grid. Below is an example of the error:
library(ggraph)
library(tidygraph)
# Create variable that should be represented by the column
highschool$group <- rbinom(nrow(highschool), 1, 0.5)
gr <- as_tbl_graph(highschool)
# Failing example with facet_graph
ggraph(gr) +
geom_edge_link() +
geom_node_point() +
facet_graph(year ~ group, col_type = "edge")
#> Error in compute_layout(..., self = self) : object 'node_map' not found
# Working example with facet_edges
ggraph(gr) +
geom_edge_link() +
geom_node_point() +
facet_edges(year ~ group)
Thanks for the nice package!
The text was updated successfully, but these errors were encountered:
Hi!
I am trying to group facets by edge variables both row-wise and column-wise. However,
geom_graph
seems to fail even when settingcol_type = "edge"
. Of course I could usefacet_edges
instead, but ideally I would like to reproduce the layout offacet_wrap
with the lateral panel titles, and not that offacet_grid
. Below is an example of the error:Thanks for the nice package!
The text was updated successfully, but these errors were encountered: