forked from srkobakian/R-ladies-colombo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.Rmd
949 lines (593 loc) · 18.9 KB
/
Index.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
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
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
---
title: "Around the world in 30 minutes"
subtitle: "Map Creation with R"
author: "Stephanie Kobakian"
institute: "Monash University"
date: "23/02/2020"
output:
xaringan::moon_reader:
seal: false
css: ["default", "rladies", "rladies-fonts"]
lib_dir: libs
nature:
ratio: "16:9"
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
```{r setup, include=FALSE}
library(knitr)
library(icon)
library(tidyverse)
library(maps)
library(ggforce)
library(kableExtra)
library(sf)
options(htmltools.dir.version = FALSE)
knitr::opts_chunk$set(fig.retina = 3,
echo = FALSE,
warning = FALSE,
message = FALSE,
cache = TRUE)
```
<img src="images/titleimg.png" style="width 100%;"/>
---
class: top
<img src="images/qut_crest.png" style="position:absolute;bottom:400px;right:200px;height:200px;width:200px;" />
<img src="images/monash_crest.jpg" style="position:absolute;bottom:100px;right:200px;height:200px;width:200px;" />
# About me
### `r icon::fontawesome("twitter")` `r icon::fontawesome("github")` srkobakian
Master of Philosophy in Statistics (QUT)
Bachelor of Commerce, Bachelor of Economics
I live in Melbourne, Australia
???
I spent most of my masters researching map displays used in Cancer Atlases.
To explore the use of alternative displays, and select one that would work for Australia.
We couldn't find one that would really improve the choropleth map display
---
class: top, center, inverse
<img src="https://media.giphy.com/media/SufoKsersIO2Y/giphy.gif" style="position:absolute;bottom:50px;left:40%;height:50%;width:20%;" />
# Ask me a question
### Use the chat
### Answer in discussion time
???
Now there may have been some terms I used that are unfamiliar to you. And that is great because it means I may get to teach you something today.
So If you have a question during the talk, use the chat to send it through, we may answer it as the presentation continues but if we don't i'll address it in the discussion time.
---
class: top, center
# What can you do with ggplot2?
--
## Use the Grammar of Graphics to build visulisations
<img src="https://prital.netlify.app/talks/rladies2021/fig/7_GG.png" style="position:absolute;height:50%;width:20%;left:40%;" />
---
# What is the geom for mapping?
--
## This is not a simple question
## There are many types of maps
ggplot2: Elegant Graphics for Data Analysis:
[Chapter 6: Maps](https://ggplot2-book.org/maps.html)
<img src="https://ggplot2-book.org/cover.jpg" style="position:absolute;left:60%;bottom:25%;height:60%;width:25%;" />
???
This is not a simple question
There are many ways to map
What do we have to work with?
---
# What do we need to plot?
.pull-left[
Libraries
```{r libraries, echo = TRUE, message=FALSE}
library(ggplot2)
library(maps)
```
Data
```{r mapdata, results = FALSE, echo = TRUE}
world <- map_data("world")
Australia <- world %>% filter(region == "Australia")
Australia
```
]
.pull-right[
```{r mapdata1, echo = FALSE}
world <- map_data("world")
Australia <- world %>% filter(region == "Australia")
Australia %>% head()
```
]
---
# Mapping Data
.pull-left[
```{r filteraus, echo = FALSE}
# remove islands down the bottom
Australia <- Australia %>% filter(lat > -45)
```
```{r auspoints, fig.width = 6, fig.height = 5, dpi = 600, echo = TRUE}
ggplot(Australia) +
geom_point(aes(x = long, y = lat))
```
]
.pull-right[
```{r ausline, fig.width = 6, fig.height = 5, dpi = 600, echo = TRUE}
ggplot(Australia) +
geom_line(aes(x = long, y = lat))
```
]
???
These points are what we need for a map.
But it is about how you use them.
---
# Polygon Mapping
.pull-left[
```{r auspolygon, fig.width = 6, fig.height = 5, dpi = 600, echo = TRUE}
ggplot(Australia) +
{{geom_polygon(aes(x = long, y = lat, group = group))}}
```
]
.pull-right[
### This is a great start
- It looks like Australia!
- Borders are clear
- Islands are also clear
### How can we improve this?
]
???
Polygons are very similar to paths (as drawn by geom_path()) except that the start and end points are connected and the inside is coloured by fill.
---
class: middle, center, inverse
# SF system
---
## Simple Features
### Key difference:
### geometry list-column
--
Converts many, many rows
into a single row per area
Geometries fit together,
like puzzle pieces
<img src="images/sfAH.jpg" style="position:absolute;right:2%;bottom:15%;height:80%;width:60%;" />
.footnote[
[1] https://r-spatial.github.io/sf/index.html
]
---
# ozmaps package
.pull-left[
```{r ozmapcountry1, echo = TRUE}
library(sf)
library(ozmaps)
sf_oz <- ozmap_data("country")
sf_oz %>% kable()
```
```{r ozmapcountry2, echo = TRUE, fig.show = 'hide'}
{{ggplot(sf_oz) + geom_sf()}}
```
]
.pull-right[
```{r ref.label = 'ozmapcountry2', fig.width = 6, fig.height = 4, dpi = 600, echo = FALSE, results = TRUE}
```
]
---
.pull-left[
```{r ozmapstates1}
library(ozmaps)
sf_states <- ozmap_data("states")
sf_states %>% kable()
```
]
.pull-right[
```{r ozmapstates2, echo = TRUE, fig.width = 6, fig.height = 4, dpi = 600}
sf_states <- ozmap_data("states")
ggplot(sf_states) + geom_sf()
```
]
---
class: middle, center, inverse
# Creating Choropleth maps
### A choropleth maps fills regions on the maps according to their data value
--
## We need two things:
### Map and Data
---
# Data: COVID LIVE Australia
```{r scrape, echo = TRUE}
{{library(rvest)}}
{{library(polite)}}
covid_url <- "https://covidlive.com.au/report/cases"
covid_data <- bow(covid_url) %>%
scrape() %>%
html_table() %>%
purrr::pluck(2) %>%
as_tibble()
covid_data
```
<img src="images/covidlive.png" style="position:absolute;bottom:2%;right:2%;height:90%;width:50%;" />
---
.pull-left[
# Data `r icon::fontawesome("check")`
```{r coviddatatable}
covid_data <- covid_data %>% select(-VAR) %>% replace_na()
covid_data %>% knitr::kable()
```
]
.pull-right[
# Map `r icon::fontawesome("check")`
```{r covidmaptable, fig.width = 6, fig.height = 5, dpi = 600}
ozmap_states %>% knitr::kable()
```
]
---
# To join the Covid data to the map
--
.pull-left[
### - Expand the abbreviations so the names match
### - Convert cases to numeric values
```{r covidmutate, echo = TRUE}
covid_data <- covid_data %>%
mutate(STATE = case_when(
# replace the abbreviations
STATE == "NSW" ~ "New South Wales",
STATE == "WA" ~ "Western Australia",
STATE == "SA" ~ "South Australia",
STATE == "NT" ~ "Northern Territory",
STATE == "ACT" ~ "Australian Capital Territory",
# keep the rest of the state names
TRUE ~ STATE )) %>%
mutate(CASES = parse_number(CASES))
```
]
.pull-right[
### - Peform a join
```{r statesjoin, echo = TRUE}
covid_states <- left_join(ozmap_states, covid_data,
by = c("NAME" = "STATE"))
```
### - Remove the "Other Territories"
```{r statesfilter, echo = TRUE}
covid_states <- covid_states %>%
filter(!(NAME == "Other Territories"))
```
]
---
.pull-left[
# Data `r icon::fontawesome("check")`
```{r coviddatatable1}
covid_data %>% knitr::kable()
```
]
.pull-right[
# Map `r icon::fontawesome("check")`
```{r covidmaptable1, fig.width = 6, fig.height = 5, dpi = 600}
ozmap_states %>% knitr::kable()
```
]
---
.pull-left[
# Complete map data `r icon::fontawesome("check")`
```{r covidstatesdata}
covid_states %>% knitr::kable() %>% kable_styling(font_size = 12)
```
]
.pull-right[
# Choropleth Map `r icon::fontawesome("check")`
```{r covidmap, echo = TRUE, fig.width = 6, fig.height = 5, dpi = 600}
ggplot(covid_states) +
geom_sf(aes(fill = CASES))
```
]
---
```{r auszoom2, fig.width = 13, fig.height = 6, dpi = 600, echo = TRUE}
{{library(ggforce)}}
ggplot(covid_states) +
geom_sf(aes(fill = CASES)) +
{{facet_zoom(xy = NAME == "Australian Capital Territory", zoom.size = 0.6)}}
```
---
class: inverse, center
# Off we go!
<img src="https://simplyettad.files.wordpress.com/2016/05/plane-travel-animated-gif-4.gif" style="position:absolute;bottom:10%;left:25%;height:55%;width:50%;" />
---
# Covid in Sri Lanka
<img src="images/covidSLpdf.png" style="position:absolute;bottom:15%;left:12%;height:70%;width:35%;" />
<img src="images/covidSLtable.png" style="position:absolute;bottom:15%;right:12%;height:70%;width:35%;" />
.footnote[
[2] https://covid19.gov.lk/wp-content/uploads/2021/02/sitrep-sl-en-18-02_10_21.pdf
]
---
### Data: Epidemiology Unit, Ministry of Health
```{r scrapeSL, echo = FALSE}
{{library(stringr)}}
# https://covid19.gov.lk/wp-content/uploads/2021/02/sitrep-sl-en-18-02_10_21.pdf
covid_sl_table <- c("COLOMBO26925GAMPAHA15669PUTTALAM1011KALUTARA5674ANURADHAPURA428KANDY3573KURUNEGALA2040POLONNARUWA202JAFFNA229RATNAPURA1661KEGALLE1315MONERAGALA345KALMUNAI1183MATALE702GALLE1852AMPARA227BADULLA1060MATARA1346BATTICOLOA426HAMBANTOTA539VAVUNIA356TRINCOMALEE463NUWARAELIYA970KILINOCHCHI80MANNAR198MULLATIVU20")
# Extract names of regions, using a regular expression to search for letters
districts <- covid_sl_table %>%
str_extract_all(string = ., pattern = "[A-Z]*") %>% unlist( ) %>%
str_subset(., pattern = "[A-Z]")
# Extract number of cases, using a regular expression to search for numbers
counts <- covid_sl_table %>%
str_extract_all(string = ., pattern = "[0-9]*") %>% unlist() %>%
str_subset(., pattern = "[0-9]")
# Combine two sets of data to create a table
covid_sl <- tibble(DISTRICT = districts,
Count = counts) %>%
mutate(Count = parse_number(Count))
```
.left-column[
```{r showSL, echo = FALSE}
covid_sl[1:10,] %>% kable()
```
]
.right-column[
```{r ref.label = 'scrapeSL', echo = TRUE}
```
]
---
# Map data for Sri Lanka
```{r srilanka, echo = TRUE, fig.height = 2, fig.width = 5, dpi = 300}
# Select the level 2 districts (adm2)
sf_sl <- read_sf("data/lka_adm_slsd_20200305_shp/lka_admbnda_adm2_slsd_20200305.shp") %>%
select(ADM2_EN, geometry)
sf_sl
# Choose a projection from epsg.io:
sf_sl <- sf_sl %>% st_transform(5235)
```
.footnote[
[3] https://data.humdata.org/dataset/sri-lanka-administrative-levels-0-4-boundaries
]
---
.pull-left[
## Data `r icon::fontawesome("check")`
```{r covidSLdatatable, echo = FALSE}
library(kableExtra)
covid_sl[1:10,] %>% knitr::kable() %>%
kable_styling(font_size = 20)
```
]
.pull-right[
## Map `r icon::fontawesome("check")`
```{r covidSLmaptable, echo = FALSE}
sf_sl[1:10,] %>% knitr::kable() %>%
kable_styling(font_size = 20)
```
]
???
A different problem to the Australia set
---
# What is this unknown district?
```{r lagoon, fig.width = 9, fig.height = 4.5, dpi = 300, echo = FALSE}
ggplot(sf_sl) +
geom_sf() +
geom_sf(data = sf_sl %>% filter(ADM2_EN == "[unknown]"), fill = "lightblue") +
facet_zoom(xy = ADM2_EN == "[unknown]", zoom.size = 1) +
theme(panel.background = element_rect(fill = "lightblue"))
```
---
# To join the Covid data to the map
--
.pull-left[
### - Convert the district names to match
```{r covidslmutate, echo = TRUE}
covid_sl <- covid_sl %>%
# use District names from Covid data
mutate(DISTRICT = case_when(
DISTRICT == "BATTICOLOA" ~ "BATTICALOA",
DISTRICT == "NUWARAELIYA" ~ "NUWARA ELIYA",
DISTRICT == "MONERAGALA" ~ "MONARAGALA",
DISTRICT == "MULLATIVU" ~ "MULLAITIVU",
DISTRICT == "VAVUNIA" ~ "VAVUNIYA",
TRUE ~ DISTRICT))
sf_sl <- sf_sl %>%
mutate(DISTRICT = str_to_upper(ADM2_EN)) %>%
select(-ADM2_EN)
```
]
.pull-right[
### - Peform a join
```{r districtsjoin, echo = TRUE}
covid_districts_sl <- left_join(sf_sl, covid_sl,
by = c("DISTRICT"))
```
### - Remove the "[unknown]"
```{r districtsfilter, echo = TRUE}
covid_districts_sl <- covid_districts_sl %>%
filter(!(DISTRICT == "[UNKNOWN]")) %>%
filter(!(DISTRICT == "KALMUNAI")) %>%
# adjust case numbers
# city of Kalmunai in Ampara 1183+227 = 1410
mutate(Count = ifelse(DISTRICT == "AMPARA",
1410, Count))
```
]
---
.pull-left[
# Complete map data `r icon::fontawesome("check")`
```{r coviddistrictsdata}
covid_districts_sl[1:15,] %>% knitr::kable() %>% kable_styling(font_size = 12)
```
]
.pull-right[
# Choropleth Map `r icon::fontawesome("check")`
```{r coviddistrictsmap, fig.width = 4, fig.height = 4, dpi = 300}
{{library(ggthemes)}}
ggplot(covid_districts_sl) +
geom_sf(aes(fill = Count)) +
theme_map() + guides(legend.position = "right") + guides(legend.position = "right")
```
]
---
class: inverse, center
# What should we continue to ask ourselves?
--
## How can we improve?
---
class: inverse, center
# Off we go!
<img src="https://simplyettad.files.wordpress.com/2016/05/plane-travel-animated-gif-4.gif" style="position:absolute;bottom:10%;left:25%;height:55%;width:50%;" />
---
# We can use projections
--
### A projection converts the 3D globe, into to a 2D representation
<img src="images/ggchoro.png" style="position:absolute;bottom:-20%;left:20%;height:100%;width:65%;" />
---
<img src="images/epsgio.png" style="position:absolute;bottom:2%;left:10;height:110%;width:80%;" />
.footnote[
[4] https://epsg.io/3857
[5] https://lyzidiamond.com/posts/4326-vs-3857
]
---
# Common Projections
--
<img src="images/gg4326.png" style="position:absolute;bottom:10%;left:0%;height:50%;width:33%;" />
EPSG: 4326, World Geodetic System 1984, used in GPS
--
<img src="images/gg2163.png" style="position:absolute;bottom:10%;left:33%;height:50%;width:33%;" />
EPSG: 2163, US National Atlas Equal Area, spherical projection
--
<img src="images/gg8826.png" style="position:absolute;bottom:10%;right:0%;height:50%;width:33%;" />
EPSG: 8826, North American Datum 1983
---
# Choropleths
- Familiar shapes of areas
- Familiar boundary relationships
- Identify spatial structures and patterns
### However, if we have:
- sparsely populated rural areas are easy to see
- densely populated inner city areas are geographically small
---
class: inverse, center
# What are we trying to communicate?
---
class: center
# What are the alternatives?
<img src="images/ggcont.png" style="position:absolute;bottom:45%;left:0%;height:50%;width:50%;" />
<img src="images/ggncont.png" style="position:absolute;bottom:45%;right:0%;height:50%;width:50%;" />
<img src="images/ggdorl.png" style="position:absolute;bottom:4%;left:0%;height:55%;width:50%;" />
<img src="images/gghexmap.png" style="position:absolute;bottom:4%;right:0%;height:50%;width:50%;" />
.left[
.footnote[
[6] https://www.researchgate.net/publication/347076645_Mapping_cancer_the_potential_of_cartograms_and_alternative_map_displays
]
]
???
Our paper covers in detail and has lots of examples of world wide cancer atlases
---
# Cartograms
### - augment the size, shape, or distance of geographical areas
### - sizes areas by the value of a statistic, not earth size area
### - account for the population density, reveal hidden spatial patterns
### - reducing the visual impact of large areas with small populations
???
map creators can use white lies to create useful displays by distorting the geometry and suppressing features. [26]. The distortion in an area cartogram accounts for
the population density, preventing it from obscuring the spatial patterns [27].
---
class: inverse, center
# Off we go!
<img src="https://simplyettad.files.wordpress.com/2016/05/plane-travel-animated-gif-4.gif" style="position:absolute;bottom:10%;left:25%;height:55%;width:50%;" />
---
# Population
```{r population, echo = TRUE}
pop_url <- "https://www.citypopulation.de/en/srilanka/prov/admin/"
pop_table <- bow(pop_url) %>%
scrape() %>%
html_table() %>%
purrr::pluck(1)
pop_data <- pop_table %>%
select(DISTRICT = Name, Status,
population = `PopulationEstimate2020-07-01`) %>%
filter(Status == "District") %>%
mutate(DISTRICT = str_to_upper(DISTRICT)) %>%
mutate(DISTRICT = ifelse(
DISTRICT == "MONERAGALA", "MONARAGALA", DISTRICT)) %>%
mutate(population = parse_number(population))
covid_districts_sl <- left_join(covid_districts_sl, pop_data)
```
---
# Contiguous Cartogram
.pull-left[
```{r cont, fig.height = 4, echo = TRUE, eval = FALSE, fig.show = 'hide'}
{{library(cartogram)}}
cont <- cartogram_cont(covid_districts_sl,
weight = "population") %>%
st_as_sf()
ggplot(cont) +
geom_sf(aes(fill = Count), colour = NA) +
scale_fill_distiller(type = "seq",
palette = "RdPu",
direction = 1,
) +
theme_map() + guides(legend.position = "right")
```
```{r}
#save(cont, file = "cont.rda")
load("cont.rda")
```
]
.pull-right[
```{r contfig, echo = FALSE}
{{library(cartogram)}}
ggplot(cont) +
geom_sf(aes(fill = Count), colour = NA) +
scale_fill_distiller(type = "seq",
palette = "RdPu",
direction = 1,
) +
theme_void() + guides(legend.position = "right")
```
]
---
# Non-Contiguous Cartogram
.pull-left[
```{r ncont, fig.height = 4, echo = TRUE, fig.show = 'hide'}
ncont <- cartogram_ncont(covid_districts_sl,
weight = "population") %>%
st_as_sf()
ggplot(ncont) +
geom_sf(data = covid_districts_sl) +
geom_sf(aes(fill = Count), colour = NA) +
scale_fill_distiller(type = "seq",
palette = "RdPu",
direction = 1) +
theme_void() + guides(legend.position = "right")
```
]
.pull-right[
```{r ncontfig, ref.label= 'ncont', echo = FALSE}
```
]
---
# Dorling Cartogram
.pull-left[
```{r dorl, fig.height = 4, echo = TRUE, fig.show = 'hide'}
dorl <- cartogram_dorling(covid_districts_sl,
weight = "population") %>%
st_as_sf()
ggplot(dorl) +
geom_sf(data = covid_districts_sl) +
geom_sf(aes(fill = Count), colour = NA) +
scale_fill_distiller(type = "seq",
palette = "RdPu",
direction = 1) +
theme_void() + guides(legend.position = "right")
```
]
.pull-right[
```{r dorlfig, ref.label= 'dorl', echo = FALSE}
```
]
---
class: top, center, inverse
<img src="https://media.giphy.com/media/SufoKsersIO2Y/giphy.gif" style="position:absolute;bottom:50px;left:40%;height:50%;width:20%;" />
# Ask me a question
### Use the chat
### Answer in discussion time
???
---
class: center, middle
# Thank you for listening!
Slides created via the R package [**xaringan**](https://github.com/yihui/xaringan).
The chakra comes from [remark.js](https://remarkjs.com), [**knitr**](https://yihui.org/knitr), and [R Markdown](https://rmarkdown.rstudio.com).
---
Footnotes
[1] https://r-spatial.github.io/sf/index.html
[2] https://covid19.gov.lk/wp-content/uploads/2021/02/sitrep-sl-en-18-02_10_21.pdf
[3] https://data.humdata.org/dataset/sri-lanka-administrative-levels-0-4-boundaries
[4] https://epsg.io/3857
[5] https://lyzidiamond.com/posts/4326-vs-3857
[6] https://www.researchgate.net/publication/347076645_Mapping_cancer_the_potential_of_cartograms_and_alternative_map_displays