|
- ---
- title: "Types de datasets et types de données"
- author: "Antoine Neuraz"
- date: "10/30/2019"
- output:
- bookdown::html_document2:
- code_folding: hide
- ---
-
- # Types de datasets et types de données
-
- ## Types de datasets
-
- ### Données tabulaires
-
- ```{r}
-
- dt <- data.frame(x = rep(1:5, 3),
- y = c(rep(1,5), rep(2,5),rep(3,5)),
- group = rep(1, 5*3))
- dt$group[8] <- 2
-
- ggplot(data = dt,
- mapping = aes(x = x, y = y, fill = as.factor(group))) +
- geom_tile(color = 'white', size = 2) +
- annotate("segment", x=0.2,xend=5,y=3.8,yend=3.8,arrow=arrow(type="closed",length= unit(.4,"cm"))) +
- annotate("segment", x=0.2,xend=0.2,y=3.8,yend=1,arrow=arrow(type="closed",length= unit(.4,"cm"))) +
- annotate("text", x=3, y=0, label = "Cellule contenant une valeur",hjust=0.5) +
- annotate("segment", x=3,xend=3,y=0.2,yend=1.5,arrow=arrow(type="closed", length= unit(.4,"cm"))) +
- scale_fill_manual(values = list("lightgrey", "darkred"))+
- scale_x_continuous(position = "top")+
- xlab('Attributs (colonnes)') +
- ylab('Items (lignes)') +
- theme_modern() +
- theme(legend.position = 'none',
- axis.text=element_blank(),
- axis.line =element_blank())
-
- ```
-
- ### TODO
-
- ## Types de données
-
- ### TODO
|