/
illustrations.Rmd
135 lines (87 loc) · 2.25 KB
/
illustrations.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
title: "Illustrations"
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
knitr::opts_chunk$set(fig.retina = 3,
warning = FALSE,
message = FALSE)
Rmd_Files <- list.files(path = "Rmd/", pattern = ".Rmd")
path <- paste( "Rmd/", Rmd_Files, sep = "" )
#source("Rmd/utils.R")
```
This page shows illustration of well-known graphs.
## Anscombe quartet
```{r anscombe_quartet, eval=FALSE}
library(edgar)
plotgraph("anscombe_quartet.R")
```
```{r, echo=FALSE, fig.alt='Anscombe quartet by Edgar Treischl'}
knitr::include_graphics("anscombe.png")
```
## Boxplot Illustration
```{r boxplot1, eval=FALSE}
plotgraph("boxplot_illustration.R")
```
```{r, echo=FALSE, fig.alt='Boxplot Illustration by Edgar Treischl'}
knitr::include_graphics("boxplot1.png")
```
## Boxplot pitfalls
```{r boxplot2, eval=FALSE}
plotgraph("boxplot_pitfalls.R")
```
```{r, echo=FALSE, fig.alt='Boxplot Pitfalls by Edgar Treischl'}
knitr::include_graphics("boxplot2.png")
```
## Data format
```{r, eval=FALSE}
plotgraph("long_wide.R")
```
```{r, echo=FALSE, fig.alt='Data joins by Edgar Treischl'}
knitr::include_graphics("long_wide.png")
```
## Data joins
```{r joins, eval=FALSE}
plotgraph("data_joins.R")
```
```{r, echo=FALSE, fig.alt='Data joins by Edgar Treischl'}
knitr::include_graphics("joins.png")
```
## Data saurus
```{r datasaurus, eval=FALSE}
plotgraph("datasaurus.R")
```
```{r, echo=FALSE, fig.alt='Data saurus by Edgar Treischl'}
knitr::include_graphics("saurus.png")
```
## Gapminder
```{r gapminder, eval=FALSE}
plotgraph("gapminder.R")
```
```{r, echo=FALSE, fig.alt='Gapminder by Edgar Treischl'}
knitr::include_graphics("gapminder.png")
```
## Pac-Man
```{r pacman, eval=FALSE}
Graphs::plotgraph("pacman.R")
```
```{r, echo=FALSE, fig.alt='The Pacman plot by Edgar Treischl'}
knitr::include_graphics("pacman.png")
```
## Simpson's paradox
```{r simpson, eval=FALSE}
Graphs::plotgraph("simpson.R")
```
```{r, echo=FALSE, fig.alt='Simpsons Paradox by Edgar Treischl'}
knitr::include_graphics("simpson.png")
```
## UCB Admission
```{r ucb, eval=FALSE}
Graphs::plotgraph("ucb_admission.R")
```
```{r, echo=FALSE, fig.alt='UCB Plot by Edgar Treischl'}
knitr::include_graphics("ucb.png")
```