create_gexf | R Documentation |
This function creates a gexf network file of a mentions network for use with Gephi software requires an rtweet dataframe as returned by get_timeline() or search_tweets() Requires rgexf which may not be available on CRAN. Use devtools::install_github("gvegayon/rgexf") to install
create_gexf( tweet_df, filepath, include_edge_att = FALSE, edge_type = "directed" )
tweet_df |
Required. An rtweet dataframe of tweets |
filepath |
Required. A full filepath with file name. Extension of file should be .gexf |
include_edge_att |
Include edge att (status ID and Date_time). Default is FALSE to minimise Gephi processing of large networks. |
edge_type |
"directed", "undirected" or "mutual". default is "directed" #'@keywords twitter, rtweet, Gephi, gexf, sna |
rstats <- rtweet::search_tweets("#rstats", n=100, token = NULL) create_gexf(rstats, "~/rstats.gexf", include_edge_att = FALSE, edge_type = "undirected")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.