Takes in the output of sentiment_analysis and creates a visualization of user's tweets with sentimental analysis.

visualize_sentiments(sentiment_df, plot_type = "Standard")

Arguments

sentiment_df

A DataFrame containing sentiment column from sentiment_analysis

plot_type

An optional string for which chart to return. Options are ("Standard", "Separate")

Value

A bar chart containing most common words in tweets, colour coded by sentiment.

Examples

data <- tweetr::brunomars_tweet sentiment_df <- sentiment_analysis(data)
#> Joining, by = "word"
#> Joining, by = "word"
visualize_sentiments(sentiment_df, plot_type = "Separate")