Learn R Programming

saotd (version 0.2.0)

tweet_distribution: Twitter Hashtag or Topic Distribution

Description

Determines the scores distribution by hashtag or topic for Twitter data.

Usage

tweet_distribution(DataFrameTidyScores, HT_Topic, binwidth = 1,
  color = "black", fill = "white")

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".

binwidth

The width of the bins. Default is 1.

color

The user selected color to highlight the bins.

fill

The interior color of the bins.

Value

A facet wrap ggplot.

Examples

Run this code
# NOT RUN {
library(saotd)
data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
score_data <- tweet_scores(DataFrameTidy = tidy_data, 
                           HT_Topic = "hashtag") 
Dist <- tweet_distribution(DataFrameTidyScores = score_data,
                     HT_Topic = "hashtag",
                     binwidth = 1,
                     color = "black", 
                     fill = "white")
Dist
# }

Run the code above in your browser using DataLab