Add flexdashboard library to R Markdown for enhanced data visualization

This commit is contained in:
2025-11-13 17:22:11 +01:00
parent 2b00a351c0
commit a3e636044a
5 changed files with 609 additions and 1 deletions

3
.gitignore vendored
View File

@@ -17,4 +17,5 @@ catboost_info
tp1_files
tp2_files
tp3_files
tp3_files
dashboard_files

View File

View File

@@ -0,0 +1,40 @@
---
title: "Dashboard des accidents de vélo"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
---
```{r setup, include = FALSE}
library(flexdashboard)
library(ggplot2)
library(gapminder)
library(rmarkdown)
```
## column {data-width="650"}
### Graphique 1
```{r}
paged_table(gapminder, options = list(rows.print = 15))
```
## column {data-width="350"}
### Graphique 2
```{r}
ggplot(data = gapminder, aes(x = lifeExp)) +
geom_histogram(aes(y = ..density..), bins = 30) +
geom_density()
```
### Graphique 3
```{r}
ggplot(data = gapminder, aes(x = lifeExp)) +
geom_histogram(aes(y = ..density..), bins = 30) +
geom_density()
```

File diff suppressed because one or more lines are too long

View File

@@ -467,6 +467,10 @@ g_map_acc
périodiques.
:::
```{r}
library(flexdashboard)
```
# Informations de session {.unnumbered}
```{r}