Learn R Programming

saotd (version 0.3.1)

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,
  bin_width = 1,
  color = "black",
  fill = "black"
)

Value

A facet wrap ggplot.

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

bin_width

The width of the bins. Default is 1.

color

The user selected color to highlight the bins.

fill

The interior color of the bins.

Examples

Run this code
if (FALSE) {
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",
                     bin_width = 1,
                     color = "black",
                     fill = "white")
Dist
}

Run the code above in your browser using DataLab