-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapsBasically.Rmd
67 lines (48 loc) · 1.07 KB
/
mapsBasically.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
---
params:
authors: 'Ben Anderson'
title: 'Testing ways of building maps'
title: '`r paste0(params$title)`'
subtitle: '`r paste0(params$subtitle)`'
author: '`r paste0(params$authors)` (Contact: [email protected], `@dataknut`)'
date: 'Last run at: `r Sys.time()`'
always_allow_html: yes
output:
bookdown::html_document2:
code_folding: hide
number_sections: yes
self_contained: no
toc: yes
toc_depth: 2
toc_float: yes
bookdown::word_document2:
toc: yes
toc_depth: 2
bookdown::pdf_document2:
toc: yes
toc_depth: 2
bibliography: statsCodeRefs.bib
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# Introduction
Robin Lovelace generally has the answers: https://geocompr.robinlovelace.net/adv-map.html
# ggmap
# ggplot2 with maps
```{r ggplot2_test}
library(ggplot2)
pointData <- data.table::fread("data/someLatLongs.csv")
```
# sf
```{r libSF}
library(sf)
```
# R environment
Packages used:
* gt [@sf]
And:
* tidyverse - [@tidyverse]
* glue - [@glue]
* data.table - [@data.table]
# References