I've recently been learning text mining with tidytext
.
Today, I encountered the following:
set.seed(2017)
ggraph(bigram_graph, layout="fr") + geom_edge_link() + geom_node_point() +
geom_node_text(aes(label=name), vjust=1, hjust=1)
I've used the set.seed()
function with other functions like sample()
. But here, I don't understand why ggraph
should be used with set.seed()
.
Can anyone help me?