Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A gist in R showing how to plot twitter data from ScraperWiki as a smoothScatter plot
# Some experiments in R to handle twitter profile data
# Ian Hopkinson 2013-03-28
# First we get the data in JSON format and then convert to a data.frame
TwitterRecordsFile = '*+from+twitter_followers'
TwitterRecords = fromJSON(file=TwitterRecordsFile, method='C')
# smoothScatter is in base R
smoothScatter(Twitterdf$followers_count,Twitterdf$following_count,xlim=c(0,5000),ylim=c(0,5000),main="Followers vs following count for a subset of twitter users")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.