Charting Twitter time series data with tweet and unique user counts

May 21, 2012
By

(This article was first published on Bommarito Consulting » r, and kindly contributed to R-bloggers)

Let’s say you’ve used my Python script to automate the download of a hashtag or search phrase from Twitter (in a Unicode safe way, unlike within R).  Now let’s say you want to visualize the number of tweets over time.  Easy enough – I’ve also shared this R/ggplot2 code that accomplishes the task.  However, let’s say you now want a plot that has both frequency in one dimension (height/y) and the number of unique users in another (color, fill transparency, etc.).  What do you do?

To make  your life easier, I’ve published this simple R/ggplot2 script on Github to help.  Embedded below:

To leave a comment for the author, please follow the link and comment on his blog: Bommarito Consulting » r.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: 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.