-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.R
More file actions
45 lines (23 loc) · 798 Bytes
/
make.R
File metadata and controls
45 lines (23 loc) · 798 Bytes
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
#' Results of French Presidential Election 2017
#'
#' @author
#' - Nicolas Casajus \email{nicolas.casajus@@gmail.com}
#' - Kevin Cazelles \email{kevin.cazelles@@gmail.com}
#' - Steve Vissault \email{s.vissault@@yahoo.fr}
#'
#' @date 2022/04/03
## Install dependencies (listed in renv.lock) ----
renv::restore()
## Load project addins (R functions and packages) ----
devtools::load_all(here::here())
## Global variables ----
year <- 2017
## Add election results to French departments geometry ----
add_data_to_shp(year, round = 1)
add_data_to_shp(year, round = 2)
## Create tooltips - Barplots for 1st round ----
make_tooltip_barplot(year)
## Create tooltips - Piecharts for 2nd round ----
make_tooltip_piechart(year)
## Create Web page ----
create_html_content(year)