-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.Rhistory
512 lines (512 loc) · 44.5 KB
/
.Rhistory
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
geom_line(size = 2) +
gghighlight(max(avg) > 95, label_key = gamename) +
theme_minimal(base_size = 16) +
labs(title = "The Rise of Farming Simulator", subtitle = 'The Farming Simulator francise has become increasingly popular since 2012' , caption = 'Data from SteamCharts • #TidyTuesday • @Ian_Bellio', x= "Average Number of Players at the Same Time)", y= "")
farming
farming <- ggplot(video_games, aes(date, avg, color = gamename)) +
geom_line(size = 2) +
gghighlight(max(avg) > 95, label_key = gamename) +
theme_minimal(base_size = 16) +
labs(title = "The Rise of Farming Simulator", subtitle = 'The Farming Simulator francise has become increasingly popular since 2012' , caption = 'Data from SteamCharts • #TidyTuesday • @Ian_Bellio', y= "Average Number of Players at the Same Time)", x= "")
farming
farming <- ggplot(video_games, aes(date, avg, color = gamename)) +
geom_line(size = 2) +
gghighlight(max(avg) > 95, label_key = gamename) +
theme_minimal(base_size = 16) +
labs(title = "The Rise of Farming Simulator", subtitle = 'The Farming Simulator francise has become increasingly popular since 2012' , caption = 'Data from SteamCharts • #TidyTuesday • @Ian_Bellio', y= "Average Number of Players at the Same Time", x= "")
farming
farming <- ggplot(video_games, aes(date, avg, color = gamename)) +
geom_line(size = 2) +
gghighlight(max(avg) > 95, label_key = gamename) +
theme_minimal(base_size = 16) +
labs(title = "The Rise of Farming Simulator", subtitle = 'The Farming Simulator francise has become increasingly popular since 2012' , caption = 'Data from SteamCharts • #TidyTuesday • @Ian_Bellio', y= "Average Number of Players at the Same Time", x= "") +
theme(plot.title = element_text(size=24, family = "Source Sans Pro Semibold")) +
theme(text = element_text(size=18, family = "Source Sans Pro"))
farming
farming <- ggplot(video_games, aes(date, avg, color = gamename)) +
geom_line(size = 2) +
gghighlight(max(avg) > 95, label_key = gamename) +
theme_minimal(base_size = 16) +
labs(title = "The Rise of Farming Simulator", subtitle = 'The Farming Simulator francise has become increasingly popular since 2012' , caption = 'Data from SteamCharts • #TidyTuesday • @Ian_Bellio', y= "Average Number of Players", x= "") +
theme(plot.title = element_text(size=24, family = "Source Sans Pro Semibold")) +
theme(text = element_text(size=18, family = "Source Sans Pro"))
farming
ggsave("FarmingSmulator.png", dpi = 300, width = 11, height = 10, units = "in")
ggsave("FarmingSmulator.png", dpi = 300, width = 8, height = 4.5, units = "in")
farming <- ggplot(video_games, aes(date, avg, color = gamename)) +
geom_line(size = 2) +
gghighlight(max(avg) > 95, label_key = gamename) +
theme_minimal(base_size = 16) +
labs(title = "The Rise of Farming Simulator", subtitle = 'The Farming Simulator francise has become increasingly popular since 2012' , caption = 'Data from SteamCharts • #TidyTuesday • @Ian_Bellio', y= "Average Number of Players", x= "") +
theme(plot.title = element_text(size=18, family = "Source Sans Pro Semibold")) +
theme(text = element_text(size=14, family = "Source Sans Pro"))
farming
library(tidyverse)
#Data
broadband <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-05-11/broadband.csv')
broadbandzip <- broadband <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-05-11/broadband_zip.csv')
#Data
broadband <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-05-11/broadband.csv')
broadbandzip <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-05-11/broadband_zip.csv')
library(tigris)
install.packages("tigris")
library(leaflet)
trib <- tribal_subdivisions_national()
library(tidyverse)
library(tigris)
library(leaflet)
trib <- tribal_subdivisions_national()
trib <- tribal_subdivisions_national()
leaflet(trib) %>%
trib <- tribal_subdivisions_national()
leaflet(trib) %>%
addProviderTiles("CartoDB.Positron") %>%
addPolygons(fillColor = "white",
color = "black",
weight = 0.5)
(rappdirs::user_cache_dir("tigris"))
library(tidyverse)
library(tigris)
library(leaflet)
library(sf)
trib <- native_areas()
zipcodes <- zctas(cb = TRUE)
native_area_zips <- st_join(trib, zipcodes)
View(native_area_zips)
broadbandzip <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-05-11/broadband_zip.csv')
View(broadbandzip)
View(native_area_zips)
native_broadband <- left_join(broadbandzip,native_area_zips, by = c("POSTAL CODE" = "GEOID10"))
native_area_zips <- st_join(trib, zipcodes) %>%
mutate(ZIP = as.numeric(GEOID10))
native_broadband <- left_join(broadbandzip,native_area_zips, by = c("POSTAL CODE" = "ZIP"))
View(native_broadband)
native_broadband <- left_join(broadbandzip,native_area_zips, by = c("POSTAL CODE" = "ZIP")) %>%
mutate(indian_country = case_when(is.na(NAME) ~ "Other", TRUE ~ "Native" ))
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, BROADBAND USAGE, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 1) +
geom_boxplot(aes(x = as.numeric(oxygen_used) + 1, y = injury_height_ft),outlier.shape = NA, alpha = 0.3, width = .1, colour = "BLACK") +
coord_flip() +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
scale_y_continuous(label=comma) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
library(tidyverse)
library(tigris)
library(leaflet)
library(sf)
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, BROADBAND USAGE, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 1) +
geom_boxplot(aes(x = as.numeric(oxygen_used) + 1, y = injury_height_ft),outlier.shape = NA, alpha = 0.3, width = .1, colour = "BLACK") +
coord_flip() +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
scale_y_continuous(label=comma) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
source("https://gist.githubusercontent.com/benmarwick/2a1bb0133ff568cbe28d/raw/fb53bd97121f7f9ce947837ef1a4c65a73bffb3f/geom_flat_violin.R")
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, BROADBAND USAGE, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 1) +
geom_boxplot(aes(x = as.numeric(oxygen_used) + 1, y = injury_height_ft),outlier.shape = NA, alpha = 0.3, width = .1, colour = "BLACK") +
coord_flip() +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
scale_y_continuous(label=comma) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, BROADBAND USAGE, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 1) +
geom_boxplot(aes(x = as.numeric(indian_country) + 1, y = BROADBAND USAGE),outlier.shape = NA, alpha = 0.3, width = .1, colour = "BLACK") +
coord_flip() +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
scale_y_continuous(label=comma) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, BROADBAND USAGE, fill = indian_country)) + geom_jitter()
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, "BROADBAND USAGE", fill = indian_country)) + geom_jitter()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, "BROADBAND USAGE", fill = indian_country)) + geom_dotplot()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, BROADBAND USAGE, fill = indian_country)) + geom_dotplot()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(indian_country, `BROADBAND USAGE`, fill = indian_country)) + geom_dotplot()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country,y = `BROADBAND USAGE`, fill = indian_country)) + geom_dotplot()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) + geom_point()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) + geom_jitter()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) + geom_violin()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) + geom_dotplot()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) + geom_boxplot()
nativebroadband_plot
install.packages('ggbeeswarm')
library(ggbeeswarm)
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) + geom_beeswarm()
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 1)
nativebroadband_plot
library(plyr)
install.packages("plyr")
library(plyr)
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 1)
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 0.5)
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 0.2)
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 0.2) +
geom_boxplot(aes(x = as.numeric(indian_country) + 1, y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = .1, colour = "BLACK")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .15), size = 0.2) +
geom_boxplot(aes(x = as.numeric(indian_country) + 1, y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 1, colour = "BLACK")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .5), size = 0.2) +
geom_boxplot(aes(x = as.numeric(indian_country) + 1, y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 1, colour = "BLACK")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .3), size = 0.2) +
geom_boxplot(aes(x = as.numeric(indian_country) + 1, y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 1, colour = "BLACK")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = as.numeric(indian_country) + 1, y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 1, colour = "BLACK")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 1, colour = "BLACK")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK") +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
library(breaks)
library(scales)
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_flat_violin(position = position_nudge(x = .2, y = 0),adjust = 2) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK") +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK", position = position_nudge(x = .2, y = 0)) +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK", position = position_nudge(x = 1, y = 0)) +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK", position = position_nudge(x = 0.25, y = 0)) +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country)) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK", position = position_nudge(x = 0.5, y = 0)) +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country, color = indian_country)) +
geom_point(position = position_jitter(width = .25), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK", position = position_nudge(x = 0.35, y = 0)) +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, fill = indian_country, color = indian_country)) +
geom_point(position = position_jitter(width = .3), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK") +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .3), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0.3, width = 0.25, colour = "BLACK") +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .3), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.25, colour = "BLACK") +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "BLACK") +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = indian_country) +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`,color = indian_country ),outlier.shape = NA, alpha = 0, width = 0.3) +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = black) +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
library(showtext)
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Acute Mountain Sickness in Himalayan Climbing", subtitle = "Acute Mountain Sickness (AMS) is an altitude-related illness caused by the reduced\n oxyen at altitude. With supplemental oxygen, AMS occured at a median altitude of\n 24,442 ft. Without, AMS occured at a median altitude of 20,997 ft.", x = "Supplemental Oxygen Used", y = "AMS Injury Height (ft)")
nativebroadband_plot
###Data
broadband <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2021/2021-05-11/broadband.csv')
View(broadband)
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Usage in Indian Country", subtitle = "In the United States, indigenous communities often have limited access or ", x = "Supplemental Oxygen Used", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, indigenous peoples living on tribal lands can have limited access to fast broadband internet. Pricing and lack of broadband infrastructure to rural areas can impact tribal education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, indigenous peoples living on tribal lands can have limited access to\n fast broadband internet. Pricing and lack of broadband infrastructure to rural areas can impact tribal education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, indigenous peoples living on tribal lands can have limited access to\n fast broadband internet. Pricing and lack of broadband infrastructure to rural areas can\n impact tribal education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, indigenous peoples living on tribal lands can have limited access to\n fast broadband internet. Pricing and lack of broadband infrastructure to rural tribal communities can\n impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, indigenous peoples living on tribal lands can have limited access to\n fast broadband internet. Pricing and lack of broadband infrastructure in tribal communities can\n impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes with with tribal lands have lower broadband internet usage when compared with other zip codes. Pricing and lack of broadband infrastructure in tribal communities\n can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
library(ggtext)
native_broadband <- left_join(broadbandzip,native_area_zips, by = c("POSTAL CODE" = "ZIP")) %>%
mutate(indian_country = case_when(is.na(NAME) ~ "Other", TRUE ~ "Tribal Lands" ))
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes with with tribal lands have lower broadband internet usage when compared with other zip codes. Pricing and lack of broadband infrastructure in tribal communities\n can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes with with tribal lands have lower broadband internet usage\n when compared with other zip codes. Pricing and lack of broadband infrastructure in tribal communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes with with tribal lands have lower broadband internet usage\n when compared with other zip codes. Pricing and lack of broadband infrastructure in tribal\n communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes that contain tribal lands have lower broadband internet usage\n when compared with other zip codes. Pricing and lack of broadband infrastructure in tribal\n communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes that contain tribal lands have lower broadband internet\n usage when compared with other zip codes. Pricing and lack of broadband infrastructure in tribal\n communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
\n
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes that contain tribal lands have lower broadband internet\n usage when compared with other zip codes. Pricing and lack of broadband infrastructure\n in tribal communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes that contain tribal lands have lower broadband internet\n usage when compared with other zip codes. Pricing and lack of broadband infrastructure\n in tribal communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage", caption = "Data: Microsoft, US Census Bureau | #TidyTuesday | @Ian_Bellio")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes that contain tribal lands have lower broadband internet\n usage when compared with other zip codes. Pricing and lack of broadband infrastructure\n in tribal communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage", caption = "Data: Microsoft, US Census Bureau | #TidyTuesday | @Ian_Bellio")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
scale_x_discrete(position = "top") +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes that contain tribal lands have lower broadband internet\n usage when compared with other zip codes. Pricing and lack of broadband infrastructure\n in tribal communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage", caption = "Data: Microsoft, US Census Bureau | #TidyTuesday | @Ian_Bellio")
nativebroadband_plot
native_broadband$indian_country <- factor(native_broadband$indian_country, levels = c("Tribal Lands", "Other"))
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
scale_x_discrete(position = "top") +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "so")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes that contain tribal lands have lower broadband internet\n usage when compared with other zip codes. Pricing and lack of broadband infrastructure\n in tribal communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage", caption = "Data: Microsoft, US Census Bureau | #TidyTuesday | @Ian_Bellio")
nativebroadband_plot
nativebroadband_plot <- ggplot(data = native_broadband, aes(x = indian_country, y = `BROADBAND USAGE`, color = indian_country)) +
geom_point(position = position_jitter(width = .4), size = 0.2) +
geom_boxplot(aes(x = indian_country , y = `BROADBAND USAGE`),outlier.shape = NA, alpha = 0, width = 0.3, colour = "black") +
scale_y_continuous(label=percent) +
scale_x_discrete(position = "top") +
theme_minimal() +
theme_minimal(base_size = 16, base_family = "roboto") +
theme(plot.title = element_text(size=26, family = "times new roman")) +
theme(legend.position = "none") +
labs(title = "Broadband Internet Use in Indian Country", subtitle = "In the United States, zip codes that contain tribal lands have lower broadband internet\n usage when compared with other zip codes. Pricing and lack of broadband infrastructure\n in tribal communities can impact education, economic development, and quality of life. ", x = "", y = "Percent Broadband Usage", caption = "Data: Microsoft, US Census Bureau | #TidyTuesday | @Ian_Bellio")
nativebroadband_plot