tweet_time: Twitter Data Timeseries Plot.

View source: R/tweet_time.R

tweet_timeR Documentation

Twitter Data Timeseries Plot.

Description

Displays the Twitter data sentiment scores through time. The sentiment scores by hashtag or topic are summed per day and plotted to show the change in sentiment through time.

Usage

tweet_time(DataFrameTidyScores, HT_Topic)

Arguments

DataFrameTidyScores

DataFrame of Twitter Data that has been tidy'd and scored.

HT_Topic

If using hashtag data select: "hashtag". If using topic data select: "topic".

Value

A ggplot plot.

Examples

## Not run: 
library(saotd)
data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
score_data <- tweet_scores(DataFrameTidy = tidy_data,
                           HT_Topic = "hashtag")
ht_time <- tweet_time(DataFrameTidyScores = score_data,
                      HT_Topic = "hashtag")
ht_time

data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
score_data <- tweet_scores(DataFrameTidy = tidy_data,
                           HT_Topic = "topic")
topic_time <- tweet_time(DataFrameTidyScores = score_data,
                         HT_Topic = "topic")
topic_time                    

## End(Not run)

saotd documentation built on Sept. 4, 2023, 9:06 a.m.