Skip to content
Snippets Groups Projects
Commit 22ed637f authored by Daniel.Kalioudjoglou's avatar Daniel.Kalioudjoglou
Browse files

Merge branch '76-modifications-mineures-n1' into 'dev'

ajout d'une décimale dans la légende de la carte 2_7, couleurs pour les...

Closes #76

See merge request dreal-datalab/propre.artificialisation!50
parents ff6a38b1 15fc0e70
No related branches found
No related tags found
2 merge requests!65maj_avant_transfert_vers_gitlabforge,!50ajout d'une décimale dans la légende de la carte 2_7, couleurs pour les...
Pipeline #185414 failed
...@@ -59,7 +59,7 @@ creer_carte_2_7 <- function(millesime_obs_artif= NULL, code_reg = NULL) { ...@@ -59,7 +59,7 @@ creer_carte_2_7 <- function(millesime_obs_artif= NULL, code_reg = NULL) {
carto = fond_cartographique, carto = fond_cartographique,
indicateur = valeur, indicateur = valeur,
bornes = bins, bornes = bins,
decimales = 0, decimales = 1,
palette = "pal_gouv_h", palette = "pal_gouv_h",
titre = glue::glue("Nouvelles surfaces artificialis\u00e9es cadastr\u00e9es\nentre {millesime_debut} et {millesime_fin} (10 ans)"), titre = glue::glue("Nouvelles surfaces artificialis\u00e9es cadastr\u00e9es\nentre {millesime_debut} et {millesime_fin} (10 ans)"),
sous_titre = NULL, sous_titre = NULL,
......
...@@ -116,11 +116,11 @@ creer_graphe_3_4 <- function(millesime_stock_artif = NULL,millesime_population = ...@@ -116,11 +116,11 @@ creer_graphe_3_4 <- function(millesime_stock_artif = NULL,millesime_population =
color = .data$variable), color = .data$variable),
position = ggplot2::position_dodge(width = 1), position = ggplot2::position_dodge(width = 1),
hjust = -0.1) + hjust = -0.1) +
ggplot2::scale_color_manual(values = gouvdown::gouv_palettes$pal_gouv_h[1:2]) + ggplot2::scale_color_manual(values = c("#82534b","#FF8D7E")) +
ggplot2::scale_fill_manual(values = gouvdown::gouv_palettes$pal_gouv_h[1:2]) + ggplot2::scale_fill_manual(values = c("#82534b","#FF8D7E")) +
ggplot2::labs( ggplot2::labs(
title = glue::glue("Surfaces cadastr\u00e9es artificialis\u00e9es (m\u00b2)", width = 60), title = glue::glue("Surfaces cadastr\u00e9es artificialis\u00e9es (m\u00b2)", width = 60),
subtitle = glue::glue("<span style = \'color:#FF8D7E\'>par habitant pr\u00e9sent en {millesime_debut_population}</span> et <span style = \'color:#D6857B\'>par nouvel habitant entre {millesime_debut_population} et {millesime_fin_population}</span> "), subtitle = glue::glue("<span style = \'color:#FF8D7E\'>par habitant pr\u00e9sent en {millesime_debut_population}</span> et <span style = \'color:#82534b\'>par nouvel habitant entre {millesime_debut_population} et {millesime_fin_population}</span> "),
x = "", x = "",
y = "", y = "",
fill = "", fill = "",
......
...@@ -152,13 +152,17 @@ creer_graphe_4_2 <- function(millesime_stock_artif = NULL,millesime_population = ...@@ -152,13 +152,17 @@ creer_graphe_4_2 <- function(millesime_stock_artif = NULL,millesime_population =
graphe_4_2 <- data %>% ggplot2::ggplot(ggplot2::aes(x=.data$seuil_pop,y=.data$valeur,fill=.data$variable), width = 0.9) + graphe_4_2 <- data %>% ggplot2::ggplot(ggplot2::aes(x=.data$seuil_pop,y=.data$valeur,fill=.data$variable), width = 0.9) +
ggplot2::geom_bar(stat="identity",position = ggplot2::position_dodge())+ ggplot2::geom_bar(stat="identity",position = ggplot2::position_dodge())+
ggplot2::coord_flip() + ggplot2::coord_flip() +
ggplot2::geom_text(ggplot2::aes(label=format(round(.data$valeur,0), big.mark = " "),color = .data$variable),position= ggplot2::position_dodge(width=1), hjust=-0.1)+ ggplot2::geom_text(ggplot2::aes(label = format(round(.data$valeur,0), big.mark = " "),
ggplot2::scale_color_manual(values = gouvdown::gouv_palettes$pal_gouv_h[1:2]) + color = .data$variable),
ggplot2::scale_fill_manual(values = gouvdown::gouv_palettes$pal_gouv_h[1:2]) + position = ggplot2::position_dodge(width=1),
hjust=-0.1) +
ggplot2::scale_color_manual(values = c("#82534b","#FF8D7E")) +
ggplot2::scale_fill_manual(values = c("#82534b","#FF8D7E")) +
ggplot2::labs( ggplot2::labs(
title = glue::glue("Surfaces cadastr\u00e9es artificialis\u00e9es (m2)", width = 60), title = glue::glue("Surfaces cadastr\u00e9es artificialis\u00e9es (m2)", width = 60),
subtitle = glue::glue("<span style = 'color:#FF8D7E'>par habitant pr\u00e9sent en {millesime_debut_population}</span> et <span style = 'color:#D6857B'>par nouvel habitant entre {millesime_debut_population} et {millesime_fin_population}</span> "), subtitle = glue::glue("<span style = 'color:#FF8D7E'>par habitant pr\u00e9sent en {millesime_debut_population}</span> et <span style = 'color:#82534b'>par nouvel habitant entre {millesime_debut_population} et {millesime_fin_population}</span> "),
x = "", y = "", x = "",
y = "",
fill = "", fill = "",
caption = glue::glue("Source : Source : DGFip Majic/Cerema Fichiers fonciers - Insee - {millesime_stock_artif}") caption = glue::glue("Source : Source : DGFip Majic/Cerema Fichiers fonciers - Insee - {millesime_stock_artif}")
) + ) +
......
...@@ -10,7 +10,6 @@ params: ...@@ -10,7 +10,6 @@ params:
millesime_ocsge: 2016 millesime_ocsge: 2016
millesime_obs_artif: 2020 millesime_obs_artif: 2020
millesime_etalement_urbain: 2020 millesime_etalement_urbain: 2020
millesime_obs_artif_gk3: 2019
millesime_population: 2019 millesime_population: 2019
millesime_stock_artif: 2020 millesime_stock_artif: 2020
code_reg: 52 code_reg: 52
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment