as_document_network | R Documentation |
This function can be used to structure the output of the compare_documents function as an igraph network.
as_document_network(el)
el |
An RNewsflow_edgelist object, as created with compare_documents. |
A network/graph in the igraph class
dtm = quanteda::dfm_tfidf(rnewsflow_dfm)
el = compare_documents(dtm, date_var='date', hour_window = c(0.1, 36))
g = as_document_network(el)
g
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.