forked from PeterKDunn/SRM-Textbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
54-App-Checklists.Rmd
136 lines (109 loc) · 5.09 KB
/
54-App-Checklists.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
132
133
134
135
136
# Checklists {#Appendix-Checklists}
In this Appendix,
two checklists are provided for evaluating and producing
graphs (Sect. \@ref(Checklist-Graphics))
and
tables (Sect. \@ref(Checklist-Tables)).
These may not be comprehensive.
## A checklist for good scientific graphics {#Checklist-Graphics}
```{r GraphicsChecklist}
GraphicsChecklist <- array( dim = c(8, 3))
colnames(GraphicsChecklist) <- c("",
"Criterion",
"Details")
GraphicsChecklist[, 1] <- 1:8
GraphicsChecklist[, 2] <- c("Caption",
"Simplicity",
"Clarity",
"Accuracy",
"Message",
"Scaling",
"Organisation",
"Units")
GraphicsChecklist[1, 3] <- "Does the graph have a descriptive caption under the graph: comprehensive, clear and accurate (what, where, when)?"
GraphicsChecklist[2, 3] <- "Is the information is presented simply (e.g., not too many messages in one graph)?"
GraphicsChecklist[3, 3] <- "Is the information is presented clearly (e.g., use visible symbols; colours and symbols explained; no chart junk; no unnecessary 3-D; minimum axis tick marks; faint grid lines if needed)?"
GraphicsChecklist[4, 3] <- "Is the information accurate (e.g., not misleading, complete)?"
GraphicsChecklist[5, 3] <- "Is the main message, theme, trend, or comparison of greatest importance easily seen?"
GraphicsChecklist[6, 3] <- "Are the comparisons made on linear scale (e.g., avoiding comparison of volumes or areas or angles)?"
GraphicsChecklist[7, 3] <- "Are the data are sorted meaningfully to aid interpretation?"
GraphicsChecklist[8, 3] <- "Are the units of measurement given?"
table.cap <- "A checklist for good scientific graphics"
if( knitr::is_latex_output() ) {
kable(GraphicsChecklist,
format = "latex",
longtable = FALSE,
escape = FALSE,
col.names = colnames(GraphicsChecklist),
booktabs = TRUE,
#linesep = c("\\addlinespace", # Otherwise addes a space after five lines...
#align= c("c", "r", "p{12cm}"),
caption = table.cap) %>%
row_spec(0, bold = TRUE) %>%
kable_styling(font_size = 9) %>%
column_spec(3, width = "12cm")
}
if( knitr::is_html_output() ) {
out <- kable(GraphicsChecklist,
format = "html",
longtable = FALSE,
col.names = colnames(GraphicsChecklist),
booktabs = TRUE,
align = c("c", "r", "l"),
caption = table.cap) %>%
kable_styling(full_width = FALSE) %>%
row_spec(0, bold = TRUE)
}
```
## A checklist for good scientific tables {#Checklist-Tables}
```{r TablesChecklist}
TableChecklist <- array( dim = c(9, 3))
colnames(TableChecklist) <- c("",
"Criterion",
"Details")
TableChecklist[, 1] <- 1:9
TableChecklist[, 2] <- c("Caption",
"Clarity",
"Numbers",
"Alignment",
"Arrangement",
"Vertical lines",
"Horizontal lines",
"Units",
"Minimalist")
TableChecklist[1, 3] <- "Does the table have a descriptive caption above the table: comprehensive, clear and accurate (what, where, when)?"
TableChecklist[2, 3] <- "Are the row and columns in the table clearly labelled and explained?"
TableChecklist[3, 3] <- "Are a suitable number of decimal places (or significant figures) displayed?"
TableChecklist[4, 3] <- "Are the numbers aligned to allow easy comparison (e.g., on decimal points)?"
TableChecklist[5, 3] <- "Are the table columns/rows meaningfully arranged to emphasise patterns (e.g., not just alphabetically by default)?"
TableChecklist[6, 3] <- "Are there no vertical lines except where absolutely essential?"
TableChecklist[7, 3] <- "Are there a minimum number of horizontal lines?"
TableChecklist[8, 3] <- "Are the units of measurement clearly given?"
TableChecklist[9, 3] <- "Is unnecessary text avoided?"
table.cap <- "A checklist for good scientific tables"
if( knitr::is_latex_output() ) {
kable(TableChecklist,
format = "latex",
longtable = FALSE,
# escape=FALSE,
col.names = colnames(TableChecklist),
booktabs = TRUE,
#linesep = c("\\addlinespace", # Otherwise addes a space after five lines...
#align= c("c", "r", "p{12cm}"),
caption = table.cap) %>%
row_spec(0, bold = TRUE) %>%
kable_styling(font_size = 9) %>%
column_spec(3, width = "12cm")
}
if( knitr::is_html_output() ) {
out <- kable(TableChecklist,
format = "html",
longtable = FALSE,
col.names = colnames(TableChecklist),
booktabs = TRUE,
align = c("c", "r", "l"),
caption = table.cap) %>%
kable_styling(full_width = FALSE) %>%
row_spec(0, bold = TRUE)
}
```