sentiment_polarity {WeatherSentiment} | R Documentation |
This function takes a tweet text as input and performs sentiment analysis to visualize its overall sentiment polarity.
sentiment_polarity(tweet)
tweet |
A character vector containing the tweet text. |
A ggplot object displaying a bar chart with sentiment polarity (positive/negative) on the x-axis and sentiment score on the y-axis.
Leila Marvian Mashhad and Andriette Bekker and Mohammad Arashi and Priyanka Nagar.
e <- c("The rain is ruining my outdoor plans today.",
"I love the sunny weather today!")
s1 <- sentiment_polarity(e)
print(s1)