creer_tableau_3_1.Rd
Mise en page du tableau du chapitre 3 au format html.
creer_tableau_3_1(data, annee, titre, note_de_lecture, add_scroll)
La table d'indicateurs préparée par dataprep() selon les inputs de l'utilisateur.
Le millesime renseigné par l'utilisateur.
une chaine de caractère si vous voulez ajouter un titre spécifique.
une chaine de caractère si vous voulez ajouter une note de lecture en dessous des sources
un booleen pour indique si l'on souhaite inserer une scrollbox. (par défaut FALSE)
Un tableau mis en page au format html.
indicateurs_eptb <- lire_eptb_exemple()
creer_tableau_3_1(
data = indicateurs_eptb,
annee = 2023,
titre = "Coût et surface moyens des maisons construites par zone géographique",
add_scroll = FALSE,
note_de_lecture = ""
)
#> $viz
#> <table class="table" style="font-size: 12px; margin-left: auto; margin-right: auto;border-bottom: 0;">
#> <caption style="font-size: initial !important;">Coût et surface moyens des maisons construites par zone géographique</caption>
#> <thead>
#> <tr>
#> <th style="empty-cells: hide;border-bottom:hidden;" colspan="2"></th>
#> <th style="border-bottom:hidden;padding-bottom:0; padding-left:3px;padding-right:3px;text-align: center; " colspan="3"><div style="border-bottom: 1px solid #ddd; padding-bottom: 5px; ">Coût moyen</div></th>
#> <th style="border-bottom:hidden;padding-bottom:0; padding-left:3px;padding-right:3px;text-align: center; " colspan="3"><div style="border-bottom: 1px solid #ddd; padding-bottom: 5px; ">Surface moyenne</div></th>
#> </tr>
#> <tr>
#> <th style="text-align:left;"> Zone </th>
#> <th style="text-align:right;"> Nombre de maisons </th>
#> <th style="text-align:right;"> Coût moyen d’une maison (en €) en 2023 </th>
#> <th style="text-align:right;"> Evolution du coût moyen entre 2023 / 2022 (en %) </th>
#> <th style="text-align:right;"> Evolution du coût moyen entre 2023 / 2018 (en %) </th>
#> <th style="text-align:right;"> Surface moyenne d’une maison (en m²) en 2023 </th>
#> <th style="text-align:right;"> Evolution de la superficie moyenne entre 2023 / 2022 (en %) </th>
#> <th style="text-align:right;"> Evolution de la superficie moyenne entre 2023 / 2018 (en %) </th>
#> </tr>
#> </thead>
#> <tbody>
#> <tr>
#> <td style="text-align:left;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> Côtes-d'Armor </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 1 624 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 222 051 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 5,1 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 30,5 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 118 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -3,3 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -0,8 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> Finistère </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 2 389 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 219 856 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 6,5 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 28,8 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 118 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -2,5 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -1,7 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> Ille-et-Vilaine </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 2 085 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 216 821 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 4,3 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 23,3 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 117 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -2,5 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -3,3 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> Morbihan </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 2 337 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 220 315 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 4,9 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 27,9 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 118 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -3,3 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -1,7 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(229, 229, 229, 255) !important;"> Communes de densité intermédiaire </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 1 766 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 221 568 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 5,4 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 27,9 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 119 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -1,7 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -0,8 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(229, 229, 229, 255) !important;"> Communes densément peuplées </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 301 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 230 761 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 14,8 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 36,0 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 120 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -0,8 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 0,0 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(229, 229, 229, 255) !important;"> Communes rurales </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 6 368 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 218 601 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 4,7 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 26,8 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 118 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -2,5 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -1,7 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> Bretagne </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 8 435 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 219 656 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 5,2 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 27,3 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 118 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -2,5 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -1,7 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> France métropolitaine </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 69 766 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 221 271 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 5,6 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 28,5 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 119 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> -1,7 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> -0,8 </td>
#> </tr>
#> </tbody>
#> <tfoot><tr><td style="padding: 0; " colspan="100%">
#> <sup></sup> Source : SDES, EPTB en 2023</td></tr></tfoot>
#> </table>
#> $tab_xls
#> # A tibble: 9 × 10
#> TypeZone Zone millesime nb_projet cout_prev_maison_moy evolution_cout_prev_…¹
#> <chr> <chr> <chr> <dbl> <dbl> <dbl>
#> 1 Départe… Côte… 2023 1624. 222051 5.1
#> 2 Départe… Fini… 2023 2389. 219856 6.5
#> 3 Départe… Ille… 2023 2085. 216821 4.3
#> 4 Départe… Morb… 2023 2337. 220315 4.9
#> 5 Densité Comm… 2023 1766. 221568 5.4
#> 6 Densité Comm… 2023 301. 230761 14.8
#> 7 Densité Comm… 2023 6368. 218601 4.7
#> 8 Régions Bret… 2023 8435. 219656 5.2
#> 9 France Fran… 2023 69766. 221271 5.6
#> # ℹ abbreviated name: ¹evolution_cout_prev_maison_moy_1an
#> # ℹ 4 more variables: evolution_cout_prev_maison_moy_5ans <dbl>,
#> # surf_prev_maison_moy <dbl>, evolution_surf_prev_maison_moy_1an <dbl>,
#> # evolution_surf_prev_maison_moy_5ans <dbl>
#>
#> $meta
#> onglet
#> 1 tableau_3_1
#> titre
#> 1 Coût et surface moyens des maisons construites par zone géographique
#>