How to Create Cascading Filters in R Shiny Dashboard by TopBullets.com

Topbullets.comIn Data Science visualization is a powerful tool. You can’t sell a concept but a product. Data analytics is science but presenting them through different graphs and charts is an art. We have many ways to present the numbers and a lot of software which make our life easy. Few of them which I have tried are Tableau, R Shiny, D3, QlikView and VBA Dashboard. Every tool has its own advantages and properties. Currently, I am working on R Shiny dashboard which is so beautiful and easy to learn. I would really encourage you to learn R Shiny if you do coding in R. It has a lot of in-built packages which can easily be deployed. Today let’s work on cascading filters one of the most important kinds of filters. Every other filter is connected to the predecessor filter. Continue reading

Assumptions of Linear Regression by TopBullets.com

Topbullets.comIn my previous post I mentioned some techniques one should know if they want to pursue a career in Data Analytics. In those lines, I would like to discuss a few topics in detail. This blog post is on Linear Regression, that would serve as an easy starter and then I would slowly move to other techniques. Linear regression is the most used technique in data science. Generally, when we say linear regression we refer to additive model which means dependent variable will be a function of all independent variables and there would linear and additive relationships. Continue reading

Exporting multiple graphs in same plot to PDF in R – TopBullets.com

Topbullets.comAs being a data scientist, plotting data is one of the first things we generally do. Without studying the behavior of the data we can’t or rather should not move ahead. There can be a lot of analysis which we can perform by plotting the graphs for example univariate, bivariate and residual plots. In my earlier blog, I wrote about how to plot two graphs in the same plot using par () function in R which is very useful when we do bivariate analysis and want to see the behavior of 2 variables across different time duration. Today I will write how to export the plots in PDF and in a tabular format. Generally exporting plots in any format (JPG, PDF) is an easier task but when you have say 50 graphs, you won’t want 50 pages, rather you will want 4 graphs in one page which will be very easier to read or interpret. Continue reading

How to plot two graphs in the same plot in R and R Shiny

Topbullets.comWe as data analyst always have to do basic EDA or data manipulating before sorting the variable for developing any model. One of the first steps that we follow in EDA is bi-variate analysis. I will not go into details how or why we do bi-variate analysis, as you must know already and just want to learn how to plot 2 graphs in the same plot area in R. So let’s get started. I simply wrote an R code with comments to understand each step. Please check out the code below and comment if any step is not clear. Good luck. Continue reading

Twitter Sentiment Analysis in R with Keyword #Modi

Topbullets.comFew months back my colleagues were discussing about this kind of analysis. We were given assignment as well but didn’t take serious at that time. Yesterday I was Googling some article and found this interesting analysis and tried myself. As I am a follower of Modi and he has million of followers on Twitter, I thought of doing ‘Sentiment Analysis’ on #MODI keyword. This is interesting as Narendra Modi (often called as Modi) is the current Prime Minister of India and he is very active in social media. But India is a democratic country and everyone has right to speak so let’s see how people are reacting to Modi. Continue reading