visualize_sentiments: Visualize Sentiment Analysis

Description Usage Arguments Value Examples

View source: R/tweetr.R

Description

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

Usage

1
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

1
2
3
data <- tweetr::brunomars_tweet
sentiment_df <- sentiment_analysis(data)
visualize_sentiments(sentiment_df, plot_type = "Separate")

UBC-MDS/tweetr documentation built on March 21, 2021, 7:14 p.m.