mirror of
https://github.com/ArthurDanjou/ArtStudies.git
synced 2026-01-14 18:59:59 +01:00
Add flexdashboard library to R Markdown for enhanced data visualization
This commit is contained in:
0
M2/Data Visualisation/.gitignore
vendored
0
M2/Data Visualisation/.gitignore
vendored
40
M2/Data Visualisation/tp2/dashboard.Rmd
Normal file
40
M2/Data Visualisation/tp2/dashboard.Rmd
Normal 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()
|
||||
```
|
||||
563
M2/Data Visualisation/tp2/dashboard.html
Normal file
563
M2/Data Visualisation/tp2/dashboard.html
Normal file
File diff suppressed because one or more lines are too long
@@ -467,6 +467,10 @@ g_map_acc
|
||||
périodiques.
|
||||
:::
|
||||
|
||||
```{r}
|
||||
library(flexdashboard)
|
||||
```
|
||||
|
||||
# Informations de session {.unnumbered}
|
||||
|
||||
```{r}
|
||||
|
||||
Reference in New Issue
Block a user