Let’s say you’ve used my Python script title="Archiving Tweets with Python" href="http://michaelbommarito.com/2011/02/26/archiving-tweets-with-python/">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 title="A quick look at #march11 / #saudi tweets" href="http://michaelbommarito.com/2011/03/12/a-quick-look-at-march11-saudi-tweets/">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 title="Plot a time series of a hashtag where height is tweet count and color is unique user count." href="https://gist.github.com/2762204" >this simple R/ggplot2 script on Github to help. Embedded below: