-
Notifications
You must be signed in to change notification settings - Fork 0
/
salaryjob2.Rmd
173 lines (137 loc) · 3.9 KB
/
salaryjob2.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
theme: cosmo
---
```{r setup, include=FALSE}
getwd()
setwd("/home/ilke/Downloads")
df<- read.csv("ödev.csv",sep=",", header=TRUE,stringsAsFactors = FALSE)
```
```{r}
library(flexdashboard)
library(ggplot2)
library(readr)
library(highcharter)
library(dplyr)
library(ggplot2)
library(tidyverse)
library(lubridate)
library(readxl)
library(funModeling)
library(gridExtra)
library(magrittr)
library(scales)
library(plotrix)
library(RColorBrewer)
library(readr)
library(maps)
library(highcharter)
library(dplyr)
library(tidyverse)
library(magrittr)
library(DataExplorer)
library(maps)
library(plotly)
library(DT)
library(tidytext)
library(gridExtra)
library(readxl)
library(ggplot2)
library(dplyr)
library(plotly)
library(tidyr)
library(d3Tree)
```
Sample Layout 1 {data-orientation=rows data-icon="fa-bar-chart"}
=====================================
## Row 1 {data-height=110}
### kişi sayısı
```{r}
valueBox(1122, icon = "fa-heart", color="rgb(100,100,100)")
```
### Title Adet
```{r}
valueBox("5", icon = "fa-heart", color="rgb(200,100,100)")
```
### Tip Adedi
```{r}
valueBox("4", icon = "fa-heart",color="rgb(26,110,204)")
```
## Row 2 {data-height=400}
### Salary-title-type
```{r}
saçılım<- plot_ly(df , x= ~experience_level , y = ~salary , z= ~job_title , color = ~job_title , text = ~salary ) %>%
add_markers() %>%
layout(
scene = list(xaxis = list(title = "LEVEL"),
yaxis= list(title = "SALARY"),
zaxis = list (title = "TİTLE"))
)
saçılım
```
## Row 3 {data-height=250}
### Title Sıklıkları
```{r}
#iş sıklıkları
tmp <- df %>% group_by(job_title) %>% tally() %>% mutate(Percent = n/sum(n))
tmp$colors <- c("#d35400", "#2980b9", "#2ecc71","red", "magenta")
tmp <- arrange(tmp,desc(Percent))
highchart() %>%
hc_xAxis(categories = c("Data scientist", "Data analyst", "Machine learning", "Big data", "ML Ops")) %>%
hc_yAxis(title=list(text='Percentage')) %>%
hc_add_series(tmp, "bar", hcaes(x = job_title, y = Percent, color=colors)) %>%
hc_tooltip(pointFormat = "{point.y:.2f}</br>",shared = FALSE) %>%
hc_legend(enabled=FALSE)
```
### Type Sıklıkları
```{r}
#type sıklıkları
tmp2 <- df %>% group_by(experience_level) %>% tally() %>% mutate(Percent = n/sum(n))
tmp2$colors <- c("#d35400", "#2980b9", "#2ecc71","magenta")
tmp2 <- arrange(tmp2,desc(Percent))
highchart() %>%
hc_xAxis(categories = c("Senior", "Mid", "Entry", "Executive")) %>%
hc_yAxis(title=list(text='Percentage')) %>%
hc_add_series(tmp2, "bar", hcaes(x = experience_level, y = Percent, color=colors)) %>%
hc_tooltip(pointFormat = "{point.y:.2f}</br>",shared = FALSE) %>%
hc_legend(enabled=FALSE)
```
Sample Layout 2 {data-icon="fa-area-chart"}
=====================================
Column {data-width=250}
-------------------------------------
### ortak
```{r}
ggplot(data = df) +
geom_bar(mapping = aes(x = job_title, fill = experience_level), position = "dodge")
```
### remote
```{r}
data <- c(131, 1026)
data_percent <- prop.table(data) * 100
library(ggplot2)
data_df <- data.frame(remote = c("Remote", "No remote"), count = c(131, 1026))
ggplot(data = data_df, aes(x = "", y = count, fill = remote)) +
geom_bar(width = 1, stat = "identity") +
coord_polar("y", start = 0) +
ggtitle("Location Pie Chart") +
scale_fill_manual(values = c("#00BFC4", "#F8766D")) +
theme_void() +
labs(fill = "location", title = "Location Pie Chart") +
geom_text(aes(label = paste0(round(data_percent), "%")), position = position_stack(vjust = 0.5))
```
### lokasyon
```{r}
top_10_locations <- df %>% group_by(location) %>%
summarise(count=n()) %>%
arrange(desc(count)) %>%
top_n(10)
ggplot(data = top_10_locations, aes(x = location, y = count, colour = location)) +
geom_bar(stat = "identity") +
ggtitle("Lokasyon ve Count") +
xlab("Lokasyon") +
ylab("Count")
```