creer_tableau_1_1.RdMise en page du tableau du chapitre 1 au format html.
creer_tableau_1_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_1_1(
data = indicateurs_eptb,
annee = 2023,
titre = "Évolution des projets de construction de maisons individuelles",
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;">Évolution des projets de construction de maisons individuelles en Bretagne</caption>
#> <thead>
#> <tr>
#> <th style="text-align:right;"> Zone </th>
#> <th style="text-align:right;"> Nombre de projets </th>
#> <th style="text-align:right;"> Part dans le total du territoire (en %) </th>
#> <th style="text-align:right;"> Évolution entre 2023 et 2022 (en %) </th>
#> <th style="text-align:right;"> Évolution entre 2023 et 2018 (en %) </th>
#> </tr>
#> </thead>
#> <tbody>
#> <tr>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> Côtes-d'Armor </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 1 614 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> <span style=" color: black !important;">19.2</span> </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> -29,9 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> -9,4 </td>
#> </tr>
#> <tr>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> Finistère </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 2 392 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> <span style=" color: black !important;">28.4</span> </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> -23,7 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> -14,0 </td>
#> </tr>
#> <tr>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> Ille-et-Vilaine </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 2 081 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> <span style=" color: black !important;">24.7</span> </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> -33,5 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> -30,3 </td>
#> </tr>
#> <tr>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> Morbihan </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> 2 335 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> <span style=" color: black !important;">27.7</span> </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> -32,0 </td>
#> <td style="text-align:right;background-color: rgba(255, 255, 255, 255) !important;"> -28,4 </td>
#> </tr>
#> <tr>
#> <td style="text-align:right;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;"> <span style=" color: black !important;">20.9</span> </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -35,1 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -43,9 </td>
#> </tr>
#> <tr>
#> <td style="text-align:right;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;"> <span style=" color: black !important;">3.5</span> </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -38,9 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -45,7 </td>
#> </tr>
#> <tr>
#> <td style="text-align:right;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;"> <span style=" color: black !important;">75.6</span> </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -27,7 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -10,7 </td>
#> </tr>
#> <tr>
#> <td style="text-align:right;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;"> <span style=" color: rgba(255, 255, 255, 255) !important;">100</span> </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;"> -22,1 </td>
#> </tr>
#> <tr>
#> <td style="text-align:right;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;"> <span style=" color: rgba(196, 196, 196, 255) !important;">200</span> </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> -36,2 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(196, 196, 196, 255) !important;"> -34,8 </td>
#> </tr>
#> </tbody>
#> <tfoot><tr><td style="padding: 0; " colspan="100%">
#> <sup></sup> Source : SDES, EPTB en 2023</td></tr></tfoot>
#> </table>