tweet_corpus_distribution: Twitter Corpus Distribution

View source: R/tweet_corpus_distribution.R

tweet_corpus_distributionR Documentation

Twitter Corpus Distribution

Description

Determines the scores distribution for the entire Twitter data corpus.

Usage

tweet_corpus_distribution(
  DataFrameTidyScores,
  binwidth = 1,
  color = "black",
  fill = "grey"
)

Arguments

DataFrameTidyScores

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

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

Examples

## Not run: 
library(saotd)
data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
score_data <- tweet_scores(DataFrameTidy = tidy_data,
                           HT_Topic = "hashtag")
Corp_Dist <- tweet_corpus_distribution(DataFrameTidyScores = score_data,
                                       binwidth = 1,
                                       color = "black",
                                       fill = "white")
Corp_Dist

## End(Not run)

evan-l-munson/SAoTD documentation built on Jan. 11, 2024, 12:26 a.m.