knitr::opts_chunk$set( # collapse = TRUE, fig.align = "center", comment = "#>", fig.path = "man/figures/", message = FALSE, warning = FALSE ) # options(width = 400)
{tweetgraph}
# install.packages("remotes") remotes::install_github("knapply/tweetgraph")
library(tweetgraph) hashtag_rstats <- rtweet::search_tweets("#rstats")
as_sna_primitive()
sna_data <- as_sna_primitive(hashtag_rstats) lapply(sna_data, names)
{igraph}
as_sna_igraph(hashtag_rstats) as_sna_igraph(sna_data)
sna_data %>% as_sna_igraph() %>% plot_vis_net()
{network}
as_sna_network(hashtag_rstats) as_sna_network(sna_data)
target_file_path <- "~/gephi-tweets.graphml" tweet_graph <- as_sna_igraph(hashtag_rstats) write_graphml(g = tweet_graph, path = target_file_path)
1.
knitr::include_graphics("gephi-open.PNG")
2.
knitr::include_graphics("gephi-open-2.PNG")
3.
knitr::include_graphics("gephi-open-3.PNG")
4.
knitr::include_graphics("gephi-open-4.PNG")
knitr::include_graphics("gephi-open-5.PNG")
as_kg_primitive()
kg_data <- as_kg_primitive(hashtag_rstats) lapply(kg_data, names)
{igraph}
as_kg_igraph(hashtag_rstats) as_kg_igraph(kg_data)
kg_data %>% as_kg_igraph() %>% plot_vis_net()
{network}
as_kg_network(hashtag_rstats) as_kg_network(kg_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.