This is an R Markdown Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the Run button within the chunk or by placing your cursor inside it and pressing Cmd+Shift+Enter.
# devtools::install_github("CamembR/tdvhackaviz2020")
library(tidyverse)
## ── Attaching packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────── tidyverse 1.3.0 ──
## ✓ ggplot2 3.2.1 ✓ purrr 0.3.3
## ✓ tibble 2.1.3 ✓ dplyr 0.8.4
## ✓ tidyr 1.0.2 ✓ stringr 1.4.0
## ✓ readr 1.3.1 ✓ forcats 0.4.0
## ── Conflicts ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
library(tdvhackaviz2020)
library(skimr)
library(lubridate)
##
## Attaching package: 'lubridate'
## The following object is masked from 'package:base':
##
## date
Heatmap of “nuitees” per week.
tdvhackaviz2020::nuitees_td %>%
mutate(date = week(date)) %>%
ggplot(aes(date, y=fct_reorder(dep,nuitees), fill=nuitees)) +
geom_tile() +
scale_fill_gradient(low="white", high="navy") +
theme_minimal()
# Capacites
tdvhackaviz2020::capacites_sem_td %>%
ggplot(aes(sem, fct_reorder(dep,capa), fill=capa)) +
geom_tile() +
scale_fill_gradient(low="white", high="blue")+
theme_minimal()
skim(tdvhackaviz2020::capacites_td)
| Name | tdvhackaviz2020::capacite… |
| Number of rows | 13 |
| Number of columns | 6 |
| _______________________ | |
| Column type frequency: | |
| factor | 1 |
| numeric | 5 |
| ________________________ | |
| Group variables | None |
Variable type: factor
| skim_variable | n_missing | complete_rate | ordered | n_unique | top_counts |
|---|---|---|---|---|---|
| dep | 0 | 1 | FALSE | 13 | 09: 1, 11: 1, 12: 1, 30: 1 |
Variable type: numeric
| skim_variable | n_missing | complete_rate | mean | sd | p0 | p25 | p50 | p75 | p100 | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| pop | 0 | 1 | 451356.92 | 402401.71 | 75949 | 189824 | 278217 | 479754 | 1376737 | ▇▃▁▁▂ |
| hbgt_collectif | 0 | 1 | 12131.54 | 11750.86 | 0 | 4288 | 6727 | 16248 | 36347 | ▇▂▁▁▂ |
| hbgt_locatif | 0 | 1 | 15882.77 | 9877.90 | 2972 | 10569 | 13392 | 21106 | 34328 | ▆▇▇▁▃ |
| hbgt_plein_air | 0 | 1 | 35434.69 | 39402.97 | 4383 | 8886 | 18796 | 35451 | 125262 | ▇▂▁▁▂ |
| hbgt_hotel | 0 | 1 | 8377.38 | 7749.84 | 118 | 2536 | 6912 | 10231 | 23963 | ▇▂▂▁▂ |