给定以下示例代码,
library(tidyverse)
library(tidygraph)
library(ggraph)
reprex <- tibble(to = 1:10,
from = c(2:10, 1),
facet = rep(1:2, each = 5)) %>%
as_tbl_graph()
reprex_plot <- reprex %>%
ggraph() +
geom_node_point() +
geom_edge_link()
reprex_plot + facet_edges(~ facet)
如何隐藏没有边缘进入或离开节点的节点?