Visualise Twitter Interactions

Allows building an edge table from data frame of tweets, also provides function to build nodes and another create a temporal graph.


Visualise networks of Twitter interactions

Features three functions:

  • getEdges: build edge table from tweets
  • getNodes: get nodes from edges
  • dynamise: make a temporal graph

Build edge table and vertices to plot social network.

See NEWS.md for changes.

# load twitteR to get tweets
library(twitteR)
token <- setup_twitter_oauth(consumer_key, consumer_secret, 
                             access_token=NULL, access_secret=NULL)
tweets <- searchTwitter("rstats", n = 200)
tweets <- twListToDF(tweets)
 
library(graphTweets)
 
edges <- getEdges(data = tweets, tweets = "text", source = "screenName")
nodes <- getNodes(edges)
 
# plot
g <- igraph::graph.data.frame(edges, directed=TRUE, vertices = nodes)
 
plot(g)

See my other projects at http://johncoene.github.io/projects/

News

graphTweets 0.3.2

  • documentation corrected
  • Better extract @handles
  • Better cleans @handles (i.e.: white space)

graphTweets 0.3

  • Fixed #1 issue, input check in dynamise
  • Added dynamise

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("graphTweets")

0.3.2 by John Coene, a year ago


https://github.com/JohnCoene/graphTweets


Report a bug at https://github.com/JohnCoene/graphTweets/issues


Browse source code at https://github.com/cran/graphTweets


Authors: John Coene [aut, cre]


Documentation:   PDF Manual  


Task views: Web Technologies and Services


MIT + file LICENSE license


Imports reshape2, dplyr, igraph, methods

Suggests testthat, twitteR


See at CRAN