Mise en page du tableau du chapitre 3 au format html.

creer_tableau_3_1(data, annee, titre, note_de_lecture, add_scroll)

Arguments

data

La table d'indicateurs préparée par dataprep() selon les inputs de l'utilisateur.

annee

Le millesime renseigné par l'utilisateur.

titre

une chaine de caractère si vous voulez ajouter un titre spécifique.

note_de_lecture

une chaine de caractère si vous voulez ajouter une note de lecture en dessous des sources

add_scroll

un booleen pour indique si l'on souhaite inserer une scrollbox. (par défaut FALSE)

Value

Un tableau mis en page au format html.

Examples

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;"> Évolution du coût moyen entre 2023 / 2022 (en %) </th>
#>    <th style="text-align:right;"> Évolution 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;"> Évolution de la superficie moyenne entre 2023 / 2022 (en %) </th>
#>    <th style="text-align:right;"> Évolution 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 614 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 211 022 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 3,6 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 30,2 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 110 </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;"> -2,7 </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 392 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 222 563 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 6,4 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 29,8 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 110 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -1,8 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -5,2 </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 081 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 217 951 </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;"> 25,4 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 115 </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;"> -4,2 </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 335 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 229 813 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 9,0 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 30,0 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 115 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -0,9 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -3,4 </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 756 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 244 485 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 6,9 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 33,1 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 121 </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;"> -1,6 </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;"> 298 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 234 278 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 0,1 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 27,8 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 125 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -2,3 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 1,6 </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;"> 214 195 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 6,8 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 28,9 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 110 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -1,8 </td>
#>    <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -4,3 </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 422 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 221 222 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 6,2 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 28,5 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 112 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -2,6 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -5,1 </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 852 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 225 001 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 6,2 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 29,5 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> 120 </td>
#>    <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> -1,6 </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>