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.

Build Status Build status Coverage Status CRAN_Status_Badge CRAN log


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 for changes.



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

Other Projects

See my other projects at


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.


0.4.0 by John Coene, 3 months ago

Report a bug at

Browse source code at

Authors: John Coene [aut, cre]

Documentation:   PDF Manual  

Task views: Web Technologies and Services

MIT + file LICENSE license

Imports reshape2, dplyr, igraph, methods, rtweet, purrr, magrittr, splitstackshape

Suggests testthat, twitteR

See at CRAN