creer_tableau_2_1.RdMise en page du tableau du chapitre 2 au format html.
creer_tableau_2_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_2_1(
data = indicateurs_eptb,
annee = 2023,
titre = "Évolution des prix et des surfaces",
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 prix et des surfaces en Bretagne </caption>
#> <thead>
#> <tr>
#> <th style="text-align:left;"> Zone </th>
#> <th style="text-align:right;"> Prix des terrains (en €/m²) en 2023 </th>
#> <th style="text-align:right;"> Évolution du prix des terrains 2023 / 2022 (en %) </th>
#> <th style="text-align:right;"> Évolution du prix des terrains 2023 / 2018 (en %) </th>
#> <th style="text-align:right;"> Surface moyenne achetée (en m²) en 2023 </th>
#> <th style="text-align:right;"> Évolution de la surface moyenne achetée 2023 / 2022 (en %) </th>
#> <th style="text-align:right;"> Évolution de la surface moyenne achetée 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;"> 79 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 11,3 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 41,1 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 751 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -3,8 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -9,0 </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;"> 112 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 34,9 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 55,6 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 633 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -15,1 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -17,6 </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;"> 134 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 5,5 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 18,6 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 517 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -3,0 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> -9,0 </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;"> 107 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 17,6 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 8,1 </td>
#> <td style="text-align:right;font-weight: bold;background-color: rgba(255, 255, 255, 255) !important;"> 817 </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;"> 13,3 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;background-color: rgba(229, 229, 229, 255) !important;"> Bretagne </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 108 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 17,4 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 24,1 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> 672 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -6,7 </td>
#> <td style="text-align:right;background-color: rgba(229, 229, 229, 255) !important;"> -4,4 </td>
#> </tr>
#> <tr>
#> <td style="text-align:left;font-style: italic;background-color: rgba(196, 196, 196, 255) !important;"> France métropolitaine </td>
#> <td style="text-align:right;font-style: italic;background-color: rgba(196, 196, 196, 255) !important;"> 99 </td>
#> <td style="text-align:right;font-style: italic;background-color: rgba(196, 196, 196, 255) !important;"> 8,8 </td>
#> <td style="text-align:right;font-style: italic;background-color: rgba(196, 196, 196, 255) !important;"> 15,1 </td>
#> <td style="text-align:right;font-style: italic;background-color: rgba(196, 196, 196, 255) !important;"> 958 </td>
#> <td style="text-align:right;font-style: italic;background-color: rgba(196, 196, 196, 255) !important;"> -2,7 </td>
#> <td style="text-align:right;font-style: italic;background-color: rgba(196, 196, 196, 255) !important;"> 2,1 </td>
#> </tr>
#> </tbody>
#> <tfoot><tr><td style="padding: 0; " colspan="100%">
#> <sup></sup> Source : SDES, EPTB en 2023</td></tr></tfoot>
#> </table>