The anatomy of a Twitter conversation, visualized with R

February 6, 2012
By

(This article was first published on Revolutions, and kindly contributed to R-bloggers)

If you're a Twitter user like me, you're probably familiar with the way that conversations can easily by tracked by following the #hashtag that participants include in the tweets to label the topic. But what causes some topics to take off, and others to die on the vine? Does the use of retweets (copying another users tweet to your own followers) have an impact?

To look at this question, R user Tony Hirst dissected the anatomy of one Twitter conversation under the hashtag #ukgc12 using the twitteR package and his own R script. The visualization he created (using the ggplot2 package) is a a kind of anatomical dissection of a Twitter conversation: 

Twitter-anatomy
Read the chart from the bottom up: each dot is a tweet. Each new participant in the conversation is listed on the vertical axis – those Twitter users with several dots in their row were active participants. You can see the conversation is quite "bursty": active periods of replies and retweets punctuated by short pauses. The red dots are "traditional retweets" (beginning with the characters "RT") — as you can see, the new bursts of conversation are generally preceded by a new tweet (T), not a retweet (RT). And as you'd expect with any conversation, the rate of chatter (the slope of the line) reduces over time.

As far as I can tell, this analysis doesn't include new-style retweets (which rebroadcast to followers but do not create a new, distinct tweet), but it would be interesting to see how they fit into this picture as well.

OUseful.Info: Visualising Activity Around a Twitter Hashtag or Search Term Using R

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: ,

Comments are closed.

Sponsors

Mango solutions



RStudio homepage



Zero Inflated Models and Generalized Linear Mixed Models with R

Dommino data lab

Quantide: statistical consulting and training



http://www.eoda.de







ODSC

ODSC

CRC R books series





Six Sigma Online Training





Contact us if you wish to help support R-bloggers, and place your banner here.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)