Sentiment analysis and visualization of real-time tweets using R
Last updated May 14, 2026
192
Stars
78
Forks
3
Issues
0
Stars/day
Attention Score
57
Language breakdown
No language data available.
▸ Files
click to expand
README
Twitter Sentiment Analysis
R
Takes feeds from Twitter into R. The sentiment of the tweets is analysed and classified into positive, negative and neutral tweets.Pre-requisites
- Installation of R (Version 3.3.1)
- Twitter Authentication to access API
Dependencies
- stringr
- ROAuth
- RCurl
- ggplot2
- reshape
- tm
- RJSONIO
- wordcloud
- gridExtra
- plyr
Steps for Execution
Short Version -
The codes are compiled into one filescript_running.R.
Longer Modular Version-
For easier understanding, the above code is modularized and must be learnt in following order- The following are for lexical based twitter analyzer (Tweets to find sentiment about entities):- authentication.R
- tweet_extraction.R
- Word Database.R
- cleaning_data.R
- emoticon.R
- score_sentiment.R
- funcontweet.R
- graphs.R
- Percentage.R
- levelofsentiment.R
- Frequent hastags of user.R
- Top tweeters and timeline of particular hashtag.R
- wordcloud.R
🔗 More in this category