GithubHelp home page GithubHelp logo

ankit2web / twitter-sentiment-analysis-using-r-shiny-webapp Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 15.0 602 KB

A Simple Approach to Twitter Sentiment Analysis in R Programming Language

R 100.00%
r shiny shiny-r shinyapp shiny-server twitter-oauth twitter-api twitter-sentiment-analysis sentiment shiny-app

twitter-sentiment-analysis-using-r-shiny-webapp's Introduction

Twitter Sentiment Analysis using R & Shiny WebApp

A Simple Approach to Twitter Sentiment Analysis in R Programming Language

This project is on “Twitter Sentiment Analysis using R” is a sentiment analysis project based on big data analytics. This project will help us to analyze sentiment from Twitter generated text data. Which will be able to show the sentimental state for a person or a specific topic or whatever we want.

The aim for this project is to build up an application which will be able to connect nontechnical people to the field of data mining. Where using simple user interface they will be able to create a report based on their search keyword. This application is very simple and easy to use. So it will be comfortable for everyone to use it.

Shiny

This project was built using Shiny WebApp. Shiny is an R package that makes it easy to build interactive web apps straight from R. You can host standalone apps on a webpage or embed them in R Markdown documents or build dashboards. You can also extend your Shiny apps with CSS themes, htmlwidgets, and JavaScript actions.

In Shiny App, there are 2 types of creating GUI Based Web Applications :

  1. Single-file (app.R)
  2. Multi-file (ui.R,server.R)

This project is Multi-file type, which contains 2 separate files for Front-End & Back-End Development. ui.R is for Front-End & server.R is for Back-End.

Prerequisites

Prerequisites for this project are :

Twitter API
R Binary
An IDE for R Programming (RStudio)
Shiny & Plotrix (R Libraries)
Positive & Negative Words List (To compare Tweets for Sentiment)

Steps to execute this program are :

  • Create a Twitter Developer account here. After your Developer Account gets approved, create a Twitter App.
  • After creating a Twitter App you will get Twitter API keys, now in RStudio open server.R file & replace "XXXXXXXXX" with appropriate API keys.
  • Now execute this script, using "Run App" button provided in the above section of RStudio.
  • Once you execute the script, you will get an interactive dashboard to analyze Sentiment Analysis of Twitter Data.
  • Once your run the ui.R/server.R script, it will show the following dashboard which will be interactive:

1. Search input & Location Selection (By default location is set to Worldwide)

Alt text

2. Word Cloud Formation

Alt text

3. Plotting Histogram of Sentiments

Alt text

4. Pie Chart for Sentiment Percentage

Alt text

5. Table of Analyzed Tweets associated with the searched Hashtag

Alt text

6. Barplot of Top 20 Users who used that Hashtag

Alt text

7. Twitter Handle Analysis (Hashtag Frequencies by a particular User)

Alt text

Contributors

twitter-sentiment-analysis-using-r-shiny-webapp's People

Contributors

ankit2web avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.