Threshold cuts in ggraph

I've used thresholds cuts before in statnet, and I want to know if it's possible to use them in ggraph. I've tried a fairly extensive search online and come up with nothing. Example code is below.

Example statnet code:

thr = 4
gplot(x.mat, gmode = "graph", thresh = thr)

ggraph and igraph code:

us.print.words.ig <- graph_from_data_frame(us_print_word_pairs, directed = FALSE)
us.print.words.bet <- betweenness(us.print.words.ig)
V(us.print.words.ig)$size <- 0.02*us.print.words.bet
us.print.words.ig %>%
  ggraph(layout = "fr") +
  geom_edge_link(color = "grey") +
  geom_node_point(size = us.print.words.bet*0.03, color = "pink") +
  geom_node_text(aes(label = name), repel = TRUE, vjust = 1, hjust = 0.5) +
  ggtitle("Word Network from Print Native American Media") + 
  theme_void()

Apologies if this isn't 100% reproducible, as this isn't so much an error as wanting to know if something is possible. Thanks!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.