rtweet (version 0.3.6)

ts_plot: ts_plot

Description

ts_plot

Usage

ts_plot(x, by = "days", obj = FALSE, ...)

Arguments

x

Tweets data frame

by

Unit of time, e.g., secs, days, weeks, months, years

obj

Logical indicating whether to return timeseries-like object. Defaults to FALSE. Set to true to return data.frame used to plot.

Other arguments passed to plot function.

Examples

Run this code
# NOT RUN {
# stream tweets mentioning presidential debates hashtag
#   for 5 minutes
x <- stream_tweets(q = "debates2016", timeout = (60 * 5))
tsplot(x)
# }

Run the code above in your browser using DataCamp Workspace