tweet_distribution: Twitter Hashtag or Topic Distribution

View source: R/tweet_distribution.R

tweet_distributionR Documentation

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

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.

Value

A facet wrap ggplot.

Examples

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

## End(Not run)

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