This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggmap) | |
library(readr) | |
library(ggplot2) | |
library(ggraph) | |
load("eway_wo_zero_nodes") | |
load("transx_wo_zero") | |
load("pincodes_repository") | |
pincodes_repository <- pincodes_repository1 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################### | |
# BiVariate Analysis # | |
##################################### | |
qplot(income,age,data = Telecom_train,geom=c("point", "smooth"),color=churn) | |
qplot(income,data = Telecom_train,geom="density") | |
#as the data is skewed we will perform log transformation | |
qplot(log(income),data = Telecom_train,geom="density") | |
qplot(log(income),age,data = Telecom_train,geom=c("point", "smooth"),color=churn) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Histogram | |
library(ggplot2) | |
qplot(region,data = Telecom_train,geom = "bar",fill=factor(region)) | |
qplot(region,data = Telecom_train,geom = "bar",fill=churn,position = "stack") | |
# flip plot by 90-degree | |
'adding coord_flip() will flip by 90 - degree' | |
qplot(region,data = Telecom_train,geom = "bar",fill=churn,position = "stack") + coord_flip() |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.