ts_plot: Plots tweets data as a time series-like data object.

View source: R/ts_plot.R

ts_plotR Documentation

Plots tweets data as a time series-like data object.

Description

Creates a ggplot2 plot of the frequency of tweets over a specified interval of time. [Deprecated]

Usage

ts_plot(data, by = "days", trim = 0L, tz = "UTC", ...)

Arguments

data

Data frame or grouped data frame.

by

Desired interval of time expressed as numeral plus one of "secs", "mins", "hours", "days", "weeks", "months", or "years". If a numeric is provided, the value is assumed to be in seconds.

trim

The number of observations to drop off the beginning and end of the time series.

tz

Time zone to be used, defaults to "UTC" (Twitter default)

...

Other arguments passed to ggplot2::geom_line().

Value

If ggplot2 is installed then a ggplot2::ggplot() plot object.

See Also

rtweet-deprecated


rtweet documentation built on May 29, 2024, 7:47 a.m.