Visualizing frequency of tweets
Visualizing the frequency of tweets over time helps understand the interest level over a product.
Walmart operates a chain of supermarkets and stores around the world. It would be interesting to check the interest level and recall for the brand Walmart by visualizing the frequency of tweets.
In this exercise, you will extract tweets on "#walmart"
and create a time series plot for visualizing the interest levels.
The library rtweet
has been pre-loaded.
This exercise is part of the course
Analyzing Social Media Data in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Extract tweets on #walmart and exclude retweets
walmart_twts <- ___("#walmart", n = 18000, include_rts = ___)
# View the output
head(walmart_twts)