View source: R/tweet_distribution.R
tweet_distribution | R Documentation |
Determines the scores distribution by hashtag or topic for Twitter data.
tweet_distribution(
DataFrameTidyScores,
HT_Topic,
bin_width = 1,
color = "black",
fill = "black"
)
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. |
A facet wrap ggplot.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.