-
Notifications
You must be signed in to change notification settings - Fork 4
/
Exploratory Analysis - Call Volume.Rmd
60 lines (48 loc) · 1.74 KB
/
Exploratory Analysis - Call Volume.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
title: "Exploratory Analysis - Call Volume"
author: "Barry Davis"
date: "July 13, 2017"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, message = FALSE, warning = FALSE)
```
# Staging
## Environment
```{r}
library(lubridate)
library(data.table)
library(tidyverse)
library(plotly)
```
## Load Data
```{r}
apps <- fread("aggint_application_refined.csv", header=TRUE, stringsAsFactors = TRUE)
skills <- fread("agg_int_skillset_refined.csv")
```
## Filter Desired Data Sets
```{r}
primaryApps <- apps[ApplicationID %in% c(10025, 10021, 10139, 10120, 10037, 10115)]
primarySkills <- skills[SkillsetID %in% c(10058,10037, 10055,10029,10168,10180)]
```
# Call Volume
In this document we will perform exploratory analysis on Calls Offered, Calls Answered, and Calls Abandoned.
# Monthly Call Volume
We're going to be looking at specific applications to determine call volume. The applications are directly accessed after selecting a menu option when the client's phone number is dialed.
```{r}
p <- ggplot(primaryApps, aes(x = month(statTimestamp, label = TRUE, abbr = TRUE), y = CallsOffered, fill = ApplicationName)) +
geom_bar(stat="identity") +
xlab("Month") + ylab("Total Calls") +
ggtitle("Monthly Total Call Volume")
ggplotly(p)
ggplot(primaryApps, aes(x = month(statTimestamp), y = CallsAbandoned, fill = ApplicationName)) +
geom_bar(stat="identity")
ggplot(primarySkills, aes(x = month(statTimestamp), y = CallsAnswered, fill = SkillsetName)) +
geom_bar(stat="identity")
```
## Including Plots
You can also embed plots, for example:
```{r pressure, echo=FALSE}
plot(pressure)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.