Description Usage Arguments Author(s) Examples
Plots number of tweets by hour or minute
1 2 3 |
tweets |
object of class tweets |
breaks |
either "minutes" or "hours" |
return_plot |
If |
missing_minutes |
If |
hours |
numeric. When different from zero, will add that number of hours to the timestamp of the tweets. That is, when hours is zero, then all times are expressed in NY time. |
Pablo Barbera pablo.barbera@nyu.edu, Megan Metzger megan.metzger@nyu.edu
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
## connect to the Mongo database
mongo <- mongo.create("SMAPP_HOST:PORT", db="DATABASE")
mongo.authenticate(mongo, username="USERNAME", password="PASSWORD", db="DATABASE")
set <- "DATABASE.COLLECTION"
## extract all tweets that mention 'occupygezi' and do a quick plot
tweets <- extract.tweets(set, string="occupygezi", fields="created_at")
plot(tweets)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.