word_cloud_tweet {WeatherSentiment}R Documentation

Generate Word Cloud from Tweet Text

Description

This function generates a word cloud visualization of the most frequent words in a tweet after basic cleaning. Stop words and words less than 3 characters are removed.

Usage

word_cloud_tweet(tweet)

Arguments

tweet

A character string containing the text of the tweet.

Value

void (generates a word cloud image).

Author(s)

Leila Marvian Mashhad and Andriette Bekker and Mohammad Arashi and Priyanka Nagar.

Examples

# Generate word cloud from a single tweet
tweet_text <- "This is a sample tweet for word cloud generation!"
word_cloud_tweet(tweet_text)

## This will generate a word cloud image where the most frequent words 
## in the tweet will be displayed larger.


[Package WeatherSentiment version 1.0 Index]