summaryrefslogtreecommitdiffstats
path: root/2026/info/plots-after.md
blob: fcdd154177bd58dfad258dcd5c8dc89be6c44ddd (plain) (blame)
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
<!-- Automatically generated by emacsconf-publish-after-page -->


<div class="transcript transcript-mainVideo"><a name="plots-mainVideo-transcript"></a><h1>Transcript (unedited)</h1>


<div class="transcript-heading">[[!template new="1" text="""Introduction""" start="00:00:00.110" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Welcome! My name is Lukas, and today""" start="00:00:00.110" video="mainVideo-plots" id="subtitle"]]
[[!template text="""we will use gnuplot to draw graphs""" start="00:00:02.706" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and organise the work in Emacs,""" start="00:00:05.160" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a text editor, using Org mode.""" start="00:00:07.148" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That lets us keep data,""" start="00:00:09.210" video="mainVideo-plots" id="subtitle"]]
[[!template text="""code and explanation in one document""" start="00:00:11.067" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and build figures we can understand,""" start="00:00:13.880" video="mainVideo-plots" id="subtitle"]]
[[!template text="""revise and share.""" start="00:00:16.279" video="mainVideo-plots" id="subtitle"]]
[[!template text="""A figure may need to be corrected""" start="00:00:20.520" video="mainVideo-plots" id="subtitle"]]
[[!template text="""months later or rebuilt by someone else.""" start="00:00:22.276" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That raises two questions:""" start="00:00:24.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""will our tools still serve us,""" start="00:00:26.758" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and will someone""" start="00:00:28.800" video="mainVideo-plots" id="subtitle"]]
[[!template text="""understand how we use them?""" start="00:00:30.006" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""ROOT: Robust, Open, Ongoing and Time-tested""" start="00:00:31.920" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""I've developed two frameworks around those""" start="00:00:31.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""questions: ROOT for technology choices""" start="00:00:34.946" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and SHAPE for workflows.""" start="00:00:38.040" video="mainVideo-plots" id="subtitle"]]
[[!template text="""ROOT concerns the tools,""" start="00:00:40.410" video="mainVideo-plots" id="subtitle"]]
[[!template text="""so that is where we start.""" start="00:00:42.582" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The name stands for Robust,""" start="00:00:44.840" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Open, Ongoing and Time-tested.""" start="00:00:46.965" video="mainVideo-plots" id="subtitle"]]
[[!template text="""These criteria help us assess whether we""" start="00:00:49.240" video="mainVideo-plots" id="subtitle"]]
[[!template text="""can inspect failures, understand and reuse""" start="00:00:52.056" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the technology, keep using and adapting""" start="00:00:55.130" video="mainVideo-plots" id="subtitle"]]
[[!template text="""it, and draw on established experience.""" start="00:00:57.667" video="mainVideo-plots" id="subtitle"]]
[[!template text="""For gnuplot, readable scripts,""" start="00:01:00.310" video="mainVideo-plots" id="subtitle"]]
[[!template text="""continuing development and decades""" start="00:01:02.270" video="mainVideo-plots" id="subtitle"]]
[[!template text="""of use give us reasons to choose it.""" start="00:01:04.237" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""SHAPE: Structure, Harmonise, Automate, Propagate, Evaluate""" start="00:01:06.260" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""SHAPE concerns how we organise""" start="00:01:06.260" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the work around those tools.""" start="00:01:08.325" video="mainVideo-plots" id="subtitle"]]
[[!template text="""It brings together five principles:""" start="00:01:10.190" video="mainVideo-plots" id="subtitle"]]
[[!template text="""structure stages, harmonise handovers,""" start="00:01:12.764" video="mainVideo-plots" id="subtitle"]]
[[!template text="""automate actions, propagate provenance,""" start="00:01:15.480" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and evaluate explicitly.""" start="00:01:18.906" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We look at this next because a dependable""" start="00:01:20.960" video="mainVideo-plots" id="subtitle"]]
[[!template text="""tool still needs clear inputs,""" start="00:01:23.562" video="mainVideo-plots" id="subtitle"]]
[[!template text="""agreed meanings,""" start="00:01:25.420" video="mainVideo-plots" id="subtitle"]]
[[!template text="""recorded decisions and checks.""" start="00:01:26.426" video="mainVideo-plots" id="subtitle"]]
[[!template text="""These principles give us things to look""" start="00:01:28.200" video="mainVideo-plots" id="subtitle"]]
[[!template text="""for when we watch the practical example.""" start="00:01:31.001" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""The dataset""" start="00:01:33.800" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""For that example, we will use""" start="00:01:33.800" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a teaching dataset of passengers""" start="00:01:35.688" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and crew aboard the Titanic,""" start="00:01:37.700" video="mainVideo-plots" id="subtitle"]]
[[!template text="""which sank in 1912.""" start="00:01:39.948" video="mainVideo-plots" id="subtitle"]]
[[!template text="""It records class or crew membership,""" start="00:01:41.420" video="mainVideo-plots" id="subtitle"]]
[[!template text="""sex, age and survival.""" start="00:01:44.004" video="mainVideo-plots" id="subtitle"]]
[[!template text="""This lets us ask a simple question:""" start="00:01:45.540" video="mainVideo-plots" id="subtitle"]]
[[!template text="""crew had more survivors than first class,""" start="00:01:48.084" video="mainVideo-plots" id="subtitle"]]
[[!template text="""but did they have a higher survival rate?""" start="00:01:50.980" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll explore that question""" start="00:01:54.070" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in an Org notebook,""" start="00:01:55.989" video="mainVideo-plots" id="subtitle"]]
[[!template text="""using gnuplot to draw""" start="00:01:57.290" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and revise the figures.""" start="00:01:59.051" video="mainVideo-plots" id="subtitle"]]
[[!template text="""So our route is:""" start="00:02:00.890" video="mainVideo-plots" id="subtitle"]]
[[!template text="""introduce the tool criteria,""" start="00:02:01.967" video="mainVideo-plots" id="subtitle"]]
[[!template text="""establish the workflow principles,""" start="00:02:03.990" video="mainVideo-plots" id="subtitle"]]
[[!template text="""then put both into practice with data.""" start="00:02:06.009" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Org Notebook""" start="00:02:08.200" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Let's switch to our Org notebook""" start="00:02:08.200" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in Emacs and start the live coding.""" start="00:02:10.079" video="mainVideo-plots" id="subtitle"]]
[[!template text="""I'll change a little code, run it""" start="00:02:12.070" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and we'll look at the result together.""" start="00:02:14.059" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The notebook keeps data,""" start="00:02:16.280" video="mainVideo-plots" id="subtitle"]]
[[!template text="""code and pictures in one place.""" start="00:02:17.830" video="mainVideo-plots" id="subtitle"]]
[[!template text="""First, let's open the raw CSV,""" start="00:02:19.800" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the raw data.""" start="00:02:22.908" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll turn it into a small table""" start="00:02:24.210" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and build our plot from there.""" start="00:02:26.720" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Our question is:""" start="00:02:29.000" video="mainVideo-plots" id="subtitle"]]
[[!template text="""did crew have a better chance""" start="00:02:30.260" video="mainVideo-plots" id="subtitle"]]
[[!template text="""of surviving than first-class passengers?""" start="00:02:32.572" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Each row is one person here; survival""" start="00:02:36.670" video="mainVideo-plots" id="subtitle"]]
[[!template text="""is one for survived and zero for died.""" start="00:02:39.716" video="mainVideo-plots" id="subtitle"]]
[[!template text="""There are 2,207 people""" start="00:02:42.760" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in this teaching dataset,""" start="00:02:45.070" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and that's our SHAPE structure:""" start="00:02:47.770" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a question and a route through the work.""" start="00:02:50.273" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Next, we let AWK count the groups.""" start="00:02:53.400" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's turn all those rows""" start="00:02:56.550" video="mainVideo-plots" id="subtitle"]]
[[!template text="""into four useful totals.""" start="00:02:58.787" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll run this AWK block and look""" start="00:03:00.850" video="mainVideo-plots" id="subtitle"]]
[[!template text="""at the table it puts straight underneath.""" start="00:03:03.158" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The commas tell AWK where each field ends.""" start="00:03:06.680" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We skip the header,""" start="00:03:10.140" video="mainVideo-plots" id="subtitle"]]
[[!template text="""use the first field to identify the group""" start="00:03:11.300" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and count one person for each row.""" start="00:03:14.152" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Then we add the fourth field.""" start="00:03:16.460" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Because it's zero or one,""" start="00:03:18.780" video="mainVideo-plots" id="subtitle"]]
[[!template text="""that sum gives us the survivors.""" start="00:03:20.753" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Subtract survivors from everyone""" start="00:03:23.180" video="mainVideo-plots" id="subtitle"]]
[[!template text="""aboard and we have the deaths too.""" start="00:03:25.244" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The last loop puts""" start="00:03:28.200" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the groups in a fixed order.""" start="00:03:29.425" video="mainVideo-plots" id="subtitle"]]
[[!template text="""There we go: four rows""" start="00:03:31.230" video="mainVideo-plots" id="subtitle"]]
[[!template text="""with the numbers we need.""" start="00:03:33.301" video="mainVideo-plots" id="subtitle"]]
[[!template text="""This is our SHAPE handover:""" start="00:03:35.550" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a small table with clear column meanings.""" start="00:03:37.730" video="mainVideo-plots" id="subtitle"]]
[[!template text="""For now, it's just an AWK result.""" start="00:03:40.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""But next, we'll add the name""" start="00:03:44.140" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and plotting lines around the same table.""" start="00:03:45.947" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Making our first plot""" start="00:03:49.000" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Now let's make our first""" start="00:03:49.000" video="mainVideo-plots" id="subtitle"]]
[[!template text="""plot from this table.""" start="00:03:50.479" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll add its name and plotting lines,""" start="00:03:51.720" video="mainVideo-plots" id="subtitle"]]
[[!template text="""run the plot and then put a link""" start="00:03:54.100" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to the saved picture underneath it.""" start="00:03:55.707" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The name is demo-class-counts,""" start="00:03:58.280" video="mainVideo-plots" id="subtitle"]]
[[!template text="""so we can use this table again later.""" start="00:04:00.241" video="mainVideo-plots" id="subtitle"]]
[[!template text="""`ind:1` takes the group names from the first""" start="00:04:03.320" video="mainVideo-plots" id="subtitle"]]
[[!template text="""column, `and deps:(3)` picks the survivors.""" start="00:04:06.423" video="mainVideo-plots" id="subtitle"]]
[[!template text="""I run `org-plot/gnuplot` inside the table.""" start="00:04:10.040" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That writes our SVG file.""" start="00:04:13.110" video="mainVideo-plots" id="subtitle"]]
[[!template text="""To show it here, I add a file link below""" start="00:04:15.740" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the table and refresh inline images.""" start="00:04:19.010" video="mainVideo-plots" id="subtitle"]]
[[!template text="""There are our four bars.""" start="00:04:21.880" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Keeping that table and picture together""" start="00:04:24.120" video="mainVideo-plots" id="subtitle"]]
[[!template text="""makes the SHAPE handover easy to follow.""" start="00:04:26.676" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Crew is slightly ahead of first class.""" start="00:04:29.230" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Next, let's check how many""" start="00:04:32.560" video="mainVideo-plots" id="subtitle"]]
[[!template text="""people each group started with.""" start="00:04:34.218" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Before we read too much into those bars,""" start="00:04:36.120" video="mainVideo-plots" id="subtitle"]]
[[!template text="""let's try column 2: everyone aboard.""" start="00:04:39.860" video="mainVideo-plots" id="subtitle"]]
[[!template text="""I change `deps:(3)`""" start="00:04:43.620" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to `deps:(2)` and plot again.""" start="00:04:45.025" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Crew had 890 people.""" start="00:04:48.680" video="mainVideo-plots" id="subtitle"]]
[[!template text="""First class had 324.""" start="00:04:50.170" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Similar survivor counts came""" start="00:04:53.500" video="mainVideo-plots" id="subtitle"]]
[[!template text="""from very different group sizes.""" start="00:04:56.096" video="mainVideo-plots" id="subtitle"]]
[[!template text="""I put `deps:(3)` back and redraw.""" start="00:04:58.960" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Using a Gnuplot block""" start="00:05:01.420" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Next, we use a Gnuplot block so we""" start="00:05:01.420" video="mainVideo-plots" id="subtitle"]]
[[!template text="""can develop the figure ourselves.""" start="00:05:04.282" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Now let's move from the table's plot""" start="00:05:06.980" video="mainVideo-plots" id="subtitle"]]
[[!template text="""instructions to a Gnuplot source block.""" start="00:05:09.405" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Those plot lines were""" start="00:05:11.960" video="mainVideo-plots" id="subtitle"]]
[[!template text="""handy for a quick look.""" start="00:05:13.589" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Next, we calculate percentages,""" start="00:05:15.290" video="mainVideo-plots" id="subtitle"]]
[[!template text="""reuse a style and draw several series.""" start="00:05:17.718" video="mainVideo-plots" id="subtitle"]]
[[!template text="""A source block gives us one place""" start="00:05:20.600" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to read and edit those commands.""" start="00:05:22.903" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll keep the same table""" start="00:05:25.070" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the same SVG file.""" start="00:05:27.501" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The `:var` header supplies our named table.""" start="00:05:29.468" video="mainVideo-plots" id="subtitle"]]
[[!template text="""`:file` says where the picture goes,""" start="00:05:32.600" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and `term` chooses the format.""" start="00:05:34.805" video="mainVideo-plots" id="subtitle"]]
[[!template text="""With the file-result""" start="00:05:36.620" video="mainVideo-plots" id="subtitle"]]
[[!template text="""settings we've prepared,""" start="00:05:38.520" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Babel adds or updates the result""" start="00:05:40.690" video="mainVideo-plots" id="subtitle"]]
[[!template text="""link below the block for us.""" start="00:05:43.022" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's the automation part of SHAPE:""" start="00:05:45.000" video="mainVideo-plots" id="subtitle"]]
[[!template text="""we can rerun one recipe and keep""" start="00:05:47.110" video="mainVideo-plots" id="subtitle"]]
[[!template text="""its result together with it.""" start="00:05:49.475" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's start with just plot data using 3.""" start="00:05:51.480" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Run the block and we get four points:""" start="00:05:55.420" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the survivor counts again.""" start="00:05:58.431" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll keep building in this block.""" start="00:06:00.920" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Group names""" start="00:06:03.290" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Next, let's put the group names back.""" start="00:06:03.290" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's make those four""" start="00:06:07.080" video="mainVideo-plots" id="subtitle"]]
[[!template text="""points easier to read.""" start="00:06:08.371" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll add the group names,""" start="00:06:09.660" video="mainVideo-plots" id="subtitle"]]
[[!template text="""leave some room at the sides""" start="00:06:11.400" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and start the vertical axis at 0.""" start="00:06:13.033" video="mainVideo-plots" id="subtitle"]]
[[!template text="""In the using expression,""" start="00:06:15.640" video="mainVideo-plots" id="subtitle"]]
[[!template text="""column 0 means the row number,""" start="00:06:17.286" video="mainVideo-plots" id="subtitle"]]
[[!template text="""column 3 gives us the height""" start="00:06:19.260" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and xtic(1) supplies the group names.""" start="00:06:21.277" video="mainVideo-plots" id="subtitle"]]
[[!template text="""notitle removes the automatic legend.""" start="00:06:23.850" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We don't need a legend""" start="00:06:26.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""for a single set of points.""" start="00:06:28.397" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Run the block again and the picture""" start="00:06:30.130" video="mainVideo-plots" id="subtitle"]]
[[!template text="""updates in the same place.""" start="00:06:32.343" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Now we can tell which point""" start="00:06:34.440" video="mainVideo-plots" id="subtitle"]]
[[!template text="""belongs to which group.""" start="00:06:35.890" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's the same SHAPE handover idea.""" start="00:06:37.080" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Make the columns and labels clear.""" start="00:06:40.760" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Adding bars""" start="00:06:42.680" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Next, we'll turn them into bars""" start="00:06:42.680" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and give the chart a bit of style.""" start="00:06:44.959" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's turn these points into filled bars,""" start="00:06:49.000" video="mainVideo-plots" id="subtitle"]]
[[!template text="""then give the chart""" start="00:06:51.210" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a title and clear units.""" start="00:06:52.411" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll put the appearance settings""" start="00:06:54.280" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in a small style block above it.""" start="00:06:56.300" video="mainVideo-plots" id="subtitle"]]
[[!template text="""`boxwidth` controls the width.""" start="00:06:58.200" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The `fill` setting colours the bars, and""" start="00:06:59.710" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the `linetype` setting gives us our blue.""" start="00:07:02.481" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The plot block keeps the title and the""" start="00:07:05.250" video="mainVideo-plots" id="subtitle"]]
[[!template text="""label saying we're counting people.""" start="00:07:07.712" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The little Noweb reference pulls""" start="00:07:09.960" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in the style whenever we run the plot.""" start="00:07:12.117" video="mainVideo-plots" id="subtitle"]]
[[!template text="""So after changing the style, I run""" start="00:07:14.600" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the plot again and see the result here.""" start="00:07:17.287" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's another bit of SHAPE automation.""" start="00:07:20.280" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Reuse one definition.""" start="00:07:23.480" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Same four values, much easier to read.""" start="00:07:25.480" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Tidying up""" start="00:07:28.220" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Let's tidy up the frame next.""" start="00:07:28.220" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Before we add more data,""" start="00:07:31.560" video="mainVideo-plots" id="subtitle"]]
[[!template text="""let's tidy up the borders and tick marks.""" start="00:07:33.132" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll keep the bottom and left""" start="00:07:36.120" video="mainVideo-plots" id="subtitle"]]
[[!template text="""edges and add a light grid.""" start="00:07:38.055" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Each border has a value:""" start="00:07:39.740" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Bottom is 1, left is 2,""" start="00:07:42.780" video="mainVideo-plots" id="subtitle"]]
[[!template text="""top is 4 and right is 8.""" start="00:07:45.096" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Add the sides you want.""" start="00:07:47.410" video="mainVideo-plots" id="subtitle"]]
[[!template text="""1 + 2 gives 3, so set border""" start="00:07:49.480" video="mainVideo-plots" id="subtitle"]]
[[!template text="""3 keeps bottom and left.""" start="00:07:52.982" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The ticks have separate settings:""" start="00:07:55.880" video="mainVideo-plots" id="subtitle"]]
[[!template text="""nomirror removes their copies at the top""" start="00:07:58.403" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and right, and out points""" start="00:08:01.370" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the remaining ticks away from the bars.""" start="00:08:03.091" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The grid goes behind the data.""" start="00:08:05.670" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Our small SHAPE check here is""" start="00:08:09.150" video="mainVideo-plots" id="subtitle"]]
[[!template text="""whether the scale is easy to read.""" start="00:08:11.030" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Additional series""" start="00:08:13.160" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Now we are ready to bring""" start="00:08:13.160" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in the people who died as well.""" start="00:08:14.752" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's show survivors and deaths together.""" start="00:08:16.650" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We use two bars per group,""" start="00:08:19.370" video="mainVideo-plots" id="subtitle"]]
[[!template text="""with a legend so we can tell them apart.""" start="00:08:20.958" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We switch to clustered histograms""" start="00:08:23.310" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and give the plot command two series.""" start="00:08:25.389" video="mainVideo-plots" id="subtitle"]]
[[!template text="""One takes the survivor column;""" start="00:08:27.820" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the other takes the deaths.""" start="00:08:29.691" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Blue means survived""" start="00:08:31.320" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the pale bars mean died.""" start="00:08:32.821" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Putting the bars side by side""" start="00:08:35.130" video="mainVideo-plots" id="subtitle"]]
[[!template text="""makes it easy to compare the two""" start="00:08:36.660" video="mainVideo-plots" id="subtitle"]]
[[!template text="""outcomes within each group.""" start="00:08:38.630" video="mainVideo-plots" id="subtitle"]]
[[!template text="""I'll keep the legend above the chart""" start="00:08:40.240" video="mainVideo-plots" id="subtitle"]]
[[!template text="""so it leaves the data clear.""" start="00:08:42.392" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We can already see a different""" start="00:08:44.600" video="mainVideo-plots" id="subtitle"]]
[[!template text="""story in each group.""" start="00:08:46.442" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Stacking outcomes""" start="00:08:47.630" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""So next we'll stack these""" start="00:08:47.630" video="mainVideo-plots" id="subtitle"]]
[[!template text="""same bars to show the totals.""" start="00:08:49.777" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's stack those two outcomes and see""" start="00:08:52.170" video="mainVideo-plots" id="subtitle"]]
[[!template text="""what happens to the overall shape.""" start="00:08:54.772" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We only need to change the histogram""" start="00:08:57.040" video="mainVideo-plots" id="subtitle"]]
[[!template text="""layout and update the title and units.""" start="00:08:59.103" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Now each full bar is everyone aboard:""" start="00:09:01.880" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the blue part is survivors""" start="00:09:04.680" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the pale part is deaths.""" start="00:09:06.124" video="mainVideo-plots" id="subtitle"]]
[[!template text="""A useful SHAPE check is that those""" start="00:09:08.110" video="mainVideo-plots" id="subtitle"]]
[[!template text="""parts add up to the group total.""" start="00:09:10.336" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Look at crew compared with first class.""" start="00:09:13.000" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The blue parts are quite similar,""" start="00:09:15.400" video="mainVideo-plots" id="subtitle"]]
[[!template text="""but the full crew bar is much taller.""" start="00:09:17.469" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Crew had 890 people; first class had 324.""" start="00:09:19.720" video="mainVideo-plots" id="subtitle"]]
[[!template text="""So a similar number of survivors came""" start="00:09:23.720" video="mainVideo-plots" id="subtitle"]]
[[!template text="""from very different starting groups.""" start="00:09:26.355" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Percentages""" start="00:09:28.850" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Next we'll put each group on a percentage""" start="00:09:28.850" video="mainVideo-plots" id="subtitle"]]
[[!template text="""scale to make that comparison clearer.""" start="00:09:31.864" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Now let's turn those""" start="00:09:34.590" video="mainVideo-plots" id="subtitle"]]
[[!template text="""counts into percentages.""" start="00:09:36.224" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We write one small rate function""" start="00:09:38.110" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and use it for both parts of the stack.""" start="00:09:40.242" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The function takes a count, divides it by""" start="00:09:42.760" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the number aboard and multiplies by 100.""" start="00:09:45.818" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Writing it once saves us""" start="00:09:48.730" video="mainVideo-plots" id="subtitle"]]
[[!template text="""repeating that calculation.""" start="00:09:50.245" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's the automate-actions idea in SHAPE.""" start="00:09:51.880" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Then we use it for the survivor""" start="00:09:55.290" video="mainVideo-plots" id="subtitle"]]
[[!template text="""column and the deaths column,""" start="00:09:57.111" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and set the axis from 0 to 100.""" start="00:09:58.760" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Run the block and every stack""" start="00:10:01.610" video="mainVideo-plots" id="subtitle"]]
[[!template text="""reaches the same height.""" start="00:10:03.538" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The blue part now takes up much""" start="00:10:05.080" video="mainVideo-plots" id="subtitle"]]
[[!template text="""more of first class than crew.""" start="00:10:06.913" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's the difference we couldn't""" start="00:10:08.630" video="mainVideo-plots" id="subtitle"]]
[[!template text="""see from survivor counts alone.""" start="00:10:10.681" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's keep just those survival rates next.""" start="00:10:12.550" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's make the answer easier to pick""" start="00:10:15.310" video="mainVideo-plots" id="subtitle"]]
[[!template text="""out by showing only the survival rates.""" start="00:10:17.638" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll go back to simple bars""" start="00:10:20.090" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and keep the full 0 to 100 scale.""" start="00:10:22.144" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We remove the histogram settings""" start="00:10:25.390" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the two-outcome legend.""" start="00:10:27.591" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The rate function stays and we use""" start="00:10:29.390" video="mainVideo-plots" id="subtitle"]]
[[!template text="""it to calculate each bar's height.""" start="00:10:31.460" video="mainVideo-plots" id="subtitle"]]
[[!template text="""I also put percent signs on the tick""" start="00:10:33.470" video="mainVideo-plots" id="subtitle"]]
[[!template text="""labels so the units are clear at a glance.""" start="00:10:35.873" video="mainVideo-plots" id="subtitle"]]
[[!template text="""First class is highest; crew is lowest.""" start="00:10:38.600" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We've changed from asking how many""" start="00:10:41.710" video="mainVideo-plots" id="subtitle"]]
[[!template text="""survived to asking what share survived.""" start="00:10:44.350" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's our SHAPE check:""" start="00:10:47.290" video="mainVideo-plots" id="subtitle"]]
[[!template text="""does the measure match our question?""" start="00:10:49.115" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Leaving out a group""" start="00:10:52.600" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Next I'll show you how to leave out""" start="00:10:52.600" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a group without changing the table.""" start="00:10:54.563" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's look at passengers""" start="00:10:56.470" video="mainVideo-plots" id="subtitle"]]
[[!template text="""only for a moment.""" start="00:10:58.255" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll hide crew in this view""" start="00:10:59.540" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and leave the source table alone.""" start="00:11:01.224" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Inside using,""" start="00:11:04.360" video="mainVideo-plots" id="subtitle"]]
[[!template text="""we check the name in column 1.""" start="00:11:05.353" video="mainVideo-plots" id="subtitle"]]
[[!template text="""If it's Crew, we return 1 divided by 0.""" start="00:11:07.480" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Gnuplot treats that as""" start="00:11:11.880" video="mainVideo-plots" id="subtitle"]]
[[!template text="""an undefined value and skips it.""" start="00:11:13.620" video="mainVideo-plots" id="subtitle"]]
[[!template text="""For the other rows,""" start="00:11:16.040" video="mainVideo-plots" id="subtitle"]]
[[!template text="""we keep the rate calculation.""" start="00:11:17.294" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We also adjust the horizontal range""" start="00:11:19.110" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and say passengers in the title.""" start="00:11:21.276" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's a small SHAPE check:""" start="00:11:23.250" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the title should tell us who's included.""" start="00:11:25.429" video="mainVideo-plots" id="subtitle"]]
[[!template text="""There are our three passenger classes""" start="00:11:28.540" video="mainVideo-plots" id="subtitle"]]
[[!template text="""with their original percentages.""" start="00:11:31.119" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Next we'll bring crew back and write""" start="00:11:33.290" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the actual values above the bars.""" start="00:11:35.484" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That way nobody has to estimate""" start="00:11:37.440" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the values from the axis.""" start="00:11:39.838" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We restore the original range""" start="00:11:41.710" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and add another use of the same table""" start="00:11:44.010" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to the plot command.""" start="00:11:45.917" video="mainVideo-plots" id="subtitle"]]
[[!template text="""This time it supplies text""" start="00:11:46.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""at each bar's position.""" start="00:11:49.707" video="mainVideo-plots" id="subtitle"]]
[[!template text="""sprintf formats the number to one""" start="00:11:52.080" video="mainVideo-plots" id="subtitle"]]
[[!template text="""decimal place and adds a percent sign.""" start="00:11:54.508" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Both the bar and its label use our rate""" start="00:11:57.720" video="mainVideo-plots" id="subtitle"]]
[[!template text="""function, so they agree automatically.""" start="00:12:00.367" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's SHAPE automation saving""" start="00:12:04.040" video="mainVideo-plots" id="subtitle"]]
[[!template text="""us from copying numbers by hand.""" start="00:12:06.260" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Now we can read about 62%""" start="00:12:08.550" video="mainVideo-plots" id="subtitle"]]
[[!template text="""for first class and 23.7% for crew.""" start="00:12:11.355" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Digging into the details""" start="00:12:15.130" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Let's see what those group""" start="00:12:15.130" video="mainVideo-plots" id="subtitle"]]
[[!template text="""averages might be hiding.""" start="00:12:17.296" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's split that comparison""" start="00:12:19.960" video="mainVideo-plots" id="subtitle"]]
[[!template text="""into women and men.""" start="00:12:21.438" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll connect a second named table""" start="00:12:22.440" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to the same Gnuplot block""" start="00:12:24.681" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and draw the two rates beside each other.""" start="00:12:26.470" video="mainVideo-plots" id="subtitle"]]
[[!template text="""I add `sex=demo-class-sex`""" start="00:12:29.080" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to the `:var` header.""" start="00:12:32.114" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That table comes from the same CSV""" start="00:12:33.980" video="mainVideo-plots" id="subtitle"]]
[[!template text="""but keeps separate counts for the recorded""" start="00:12:35.800" video="mainVideo-plots" id="subtitle"]]
[[!template text="""sex categories including children.""" start="00:12:38.878" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Same SHAPE handover:""" start="00:12:41.310" video="mainVideo-plots" id="subtitle"]]
[[!template text="""we need to know what each column means.""" start="00:12:42.949" video="mainVideo-plots" id="subtitle"]]
[[!template text="""For each series we divide""" start="00:12:45.990" video="mainVideo-plots" id="subtitle"]]
[[!template text="""its survivors by its own number aboard.""" start="00:12:47.979" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Run it and we get two bars per group.""" start="00:12:50.960" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Women have higher survival rates""" start="00:12:53.720" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in every group here.""" start="00:12:56.460" video="mainVideo-plots" id="subtitle"]]
[[!template text="""So the overall group rate leaves""" start="00:12:58.120" video="mainVideo-plots" id="subtitle"]]
[[!template text="""out quite a bit of detail.""" start="00:13:00.319" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Next, we'll try a different way""" start="00:13:02.050" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to show the same comparison.""" start="00:13:04.259" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's keep those two calculations""" start="00:13:06.190" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and try points instead of bars.""" start="00:13:08.618" video="mainVideo-plots" id="subtitle"]]
[[!template text="""It's a quick way to see how much""" start="00:13:10.830" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the choice of chart changes the picture.""" start="00:13:12.964" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We remove the histogram settings and use""" start="00:13:15.550" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a circle for women and a square for men.""" start="00:13:18.390" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Each pair sits at the same group position.""" start="00:13:21.350" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Our SHAPE check is whether this view""" start="00:13:24.790" video="mainVideo-plots" id="subtitle"]]
[[!template text="""makes the comparison easier to read.""" start="00:13:27.299" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The shapes help us tell them""" start="00:13:29.740" video="mainVideo-plots" id="subtitle"]]
[[!template text="""apart as well as the colours.""" start="00:13:31.651" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We can still see the gap""" start="00:13:33.560" video="mainVideo-plots" id="subtitle"]]
[[!template text="""within every group,""" start="00:13:35.282" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the common percentage scale""" start="00:13:36.590" video="mainVideo-plots" id="subtitle"]]
[[!template text="""lets us compare groups too.""" start="00:13:38.755" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's another view""" start="00:13:40.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""from the same table and the same block.""" start="00:13:42.059" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Overall group rates""" start="00:13:44.280" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Let's finish with the overall""" start="00:13:44.280" video="mainVideo-plots" id="subtitle"]]
[[!template text="""group rates again.""" start="00:13:47.487" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll bring back the four labelled""" start="00:13:49.410" video="mainVideo-plots" id="subtitle"]]
[[!template text="""bars and add a source line,""" start="00:13:51.347" video="mainVideo-plots" id="subtitle"]]
[[!template text="""so the saved figure makes""" start="00:13:52.840" video="mainVideo-plots" id="subtitle"]]
[[!template text="""sense outside this notebook.""" start="00:13:54.579" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We remove the women and men""" start="00:13:56.450" video="mainVideo-plots" id="subtitle"]]
[[!template text="""table from the variable header""" start="00:13:58.415" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and use our original""" start="00:14:00.520" video="mainVideo-plots" id="subtitle"]]
[[!template text="""class-counts table again.""" start="00:14:02.100" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Then we add the dataset""" start="00:14:03.980" video="mainVideo-plots" id="subtitle"]]
[[!template text="""version and its DOI.""" start="00:14:05.791" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's the provenance part of SHAPE:""" start="00:14:07.640" video="mainVideo-plots" id="subtitle"]]
[[!template text="""someone can trace this""" start="00:14:10.010" video="mainVideo-plots" id="subtitle"]]
[[!template text="""picture back to its source.""" start="00:14:11.644" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The subgroup comparison showed that there""" start="00:14:13.560" video="mainVideo-plots" id="subtitle"]]
[[!template text="""are differences inside each group too,""" start="00:14:16.081" video="mainVideo-plots" id="subtitle"]]
[[!template text="""so we'll be careful about what we claim.""" start="00:14:18.360" video="mainVideo-plots" id="subtitle"]]
[[!template text="""These are the overall""" start="00:14:21.320" video="mainVideo-plots" id="subtitle"]]
[[!template text="""rates in this snapshot.""" start="00:14:23.149" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Checking""" start="00:14:26.120" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Next let's check the total""" start="00:14:26.120" video="mainVideo-plots" id="subtitle"]]
[[!template text="""before we export.""" start="00:14:28.011" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We'll also check that the shared style""" start="00:14:29.200" video="mainVideo-plots" id="subtitle"]]
[[!template text="""still updates when we rerun the plot.""" start="00:14:32.161" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The stars in the stats ranges tell Gnuplot""" start="00:14:34.970" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to use all the data for this calculation.""" start="00:14:38.016" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Otherwise our percentage axis""" start="00:14:40.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""would leave out counts above 100.""" start="00:14:43.054" video="mainVideo-plots" id="subtitle"]]
[[!template text="""This keeps the chart at 0 to 100,""" start="00:14:45.400" video="mainVideo-plots" id="subtitle"]]
[[!template text="""while stats adds up all""" start="00:14:48.410" video="mainVideo-plots" id="subtitle"]]
[[!template text="""four survivor counts: 711.""" start="00:14:50.806" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We use that result""" start="00:14:53.400" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in a small label so the total""" start="00:14:54.798" video="mainVideo-plots" id="subtitle"]]
[[!template text="""comes from the table rather than from""" start="00:14:56.930" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a number we've typed into the picture.""" start="00:14:59.576" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Now I'll briefly change the shared""" start="00:15:02.220" video="mainVideo-plots" id="subtitle"]]
[[!template text="""colour and run the plot again.""" start="00:15:04.794" video="mainVideo-plots" id="subtitle"]]
[[!template text="""There's the colour change.""" start="00:15:07.000" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Restore it and rerun: we're back to blue.""" start="00:15:09.710" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Our style connection works,""" start="00:15:12.590" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the total agrees with the input check.""" start="00:15:14.591" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's SHAPE's evaluate-explicitly idea,""" start="00:15:17.590" video="mainVideo-plots" id="subtitle"]]
[[!template text="""with a concrete number to check.""" start="00:15:20.438" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""Saving as PDF""" start="00:15:24.110" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Next, we save the finished""" start="00:15:24.110" video="mainVideo-plots" id="subtitle"]]
[[!template text="""figure as a PDF too.""" start="00:15:25.863" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We already have the SVG,""" start="00:15:27.160" video="mainVideo-plots" id="subtitle"]]
[[!template text="""so we'll change the output options""" start="00:15:29.660" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and keep the plot code as it is.""" start="00:15:32.121" video="mainVideo-plots" id="subtitle"]]
[[!template text="""In the header, I change""" start="00:15:34.370" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the filename to end in PDF""" start="00:15:36.281" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and choose pdfcairo as the terminal.""" start="00:15:38.390" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Run the block, open the file,""" start="00:15:41.190" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and there's our figure.""" start="00:15:43.551" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Then I restore the SVG""" start="00:15:45.960" video="mainVideo-plots" id="subtitle"]]
[[!template text="""options for the inline view.""" start="00:15:47.476" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Keeping the recipe,""" start="00:15:49.320" video="mainVideo-plots" id="subtitle"]]
[[!template text="""source and export together carries""" start="00:15:51.490" video="mainVideo-plots" id="subtitle"]]
[[!template text="""our SHAPE provenance forward.""" start="00:15:53.760" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We can now answer our original question:""" start="00:15:55.640" video="mainVideo-plots" id="subtitle"]]
[[!template text="""crew had slightly more survivors,""" start="00:15:58.389" video="mainVideo-plots" id="subtitle"]]
[[!template text="""but a much lower survival rate""" start="00:16:00.810" video="mainVideo-plots" id="subtitle"]]
[[!template text="""than first class in this snapshot.""" start="00:16:02.837" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We've got the data, the calculation""" start="00:16:05.400" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the saved result together.""" start="00:16:07.659" video="mainVideo-plots" id="subtitle"]]

<div class="transcript-heading">[[!template new="1" text="""What else can Gnuplot do?""" start="00:16:11.240" video="mainVideo-plots" id="subtitle"]]</div>[[!template new="1" text="""Now let's spend a few minutes""" start="00:16:11.240" video="mainVideo-plots" id="subtitle"]]
[[!template text="""looking at what else Gnuplot can do.""" start="00:16:13.291" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Let's start with three views together.""" start="00:16:15.750" video="mainVideo-plots" id="subtitle"]]
[[!template text="""I'll show the prepared""" start="00:16:17.930" video="mainVideo-plots" id="subtitle"]]
[[!template text="""code and the result,""" start="00:16:19.214" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and we'll just look at what""" start="00:16:20.330" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the picture tells us.""" start="00:16:22.051" video="mainVideo-plots" id="subtitle"]]
[[!template text="""On the left, the stacks show""" start="00:16:23.510" video="mainVideo-plots" id="subtitle"]]
[[!template text="""how many people were aboard.""" start="00:16:25.754" video="mainVideo-plots" id="subtitle"]]
[[!template text="""In the middle,""" start="00:16:27.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the percentages change the ranking.""" start="00:16:29.061" video="mainVideo-plots" id="subtitle"]]
[[!template text="""On the right, the connected dots""" start="00:16:31.720" video="mainVideo-plots" id="subtitle"]]
[[!template text="""compare women and men within each group.""" start="00:16:34.089" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Putting them together helps us""" start="00:16:36.990" video="mainVideo-plots" id="subtitle"]]
[[!template text="""see how the questions relate.""" start="00:16:39.021" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Each panel has a clear job""" start="00:16:40.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""just like our SHAPE stages.""" start="00:16:43.486" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Next, let's look at who made""" start="00:16:46.250" video="mainVideo-plots" id="subtitle"]]
[[!template text="""up the population aboard.""" start="00:16:48.323" video="mainVideo-plots" id="subtitle"]]
[[!template text="""This one is about the size of each group.""" start="00:16:51.400" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Crew makes up about 40%""" start="00:16:54.040" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and third class about 32%.""" start="00:16:56.407" video="mainVideo-plots" id="subtitle"]]
[[!template text="""First and second class make up the rest.""" start="00:17:00.200" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The names and percentages sit right""" start="00:17:03.230" video="mainVideo-plots" id="subtitle"]]
[[!template text="""in the picture so it's easy to read.""" start="00:17:05.576" video="mainVideo-plots" id="subtitle"]]
[[!template text="""These slices describe who was aboard; the""" start="00:17:07.920" video="mainVideo-plots" id="subtitle"]]
[[!template text="""survival rates are a separate question.""" start="00:17:11.317" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Next, we'll try showing""" start="00:17:14.470" video="mainVideo-plots" id="subtitle"]]
[[!template text="""several measures in one view.""" start="00:17:16.744" video="mainVideo-plots" id="subtitle"]]
[[!template text="""So let's try a spider plot.""" start="00:17:19.490" video="mainVideo-plots" id="subtitle"]]
[[!template text="""It gives each group a shape by placing""" start="00:17:22.360" video="mainVideo-plots" id="subtitle"]]
[[!template text="""several measures on the spokes.""" start="00:17:25.052" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Each outline is one group and every""" start="00:17:27.190" video="mainVideo-plots" id="subtitle"]]
[[!template text="""spoke uses a percentage scale.""" start="00:17:30.310" video="mainVideo-plots" id="subtitle"]]
[[!template text="""You can follow an outline""" start="00:17:32.910" video="mainVideo-plots" id="subtitle"]]
[[!template text="""around to see that group's profile""" start="00:17:34.510" video="mainVideo-plots" id="subtitle"]]
[[!template text="""or compare groups along one spoke.""" start="00:17:37.021" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The overall shape can""" start="00:17:39.460" video="mainVideo-plots" id="subtitle"]]
[[!template text="""help us spot differences.""" start="00:17:41.221" video="mainVideo-plots" id="subtitle"]]
[[!template text="""But the area inside it""" start="00:17:43.640" video="mainVideo-plots" id="subtitle"]]
[[!template text="""isn't a single score.""" start="00:17:45.329" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Next, we'll return to class and sex""" start="00:17:46.870" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and read the rates through colour.""" start="00:17:49.966" video="mainVideo-plots" id="subtitle"]]
[[!template text="""So let's look at the heatmap.""" start="00:17:52.890" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The groups run down the side,""" start="00:17:55.660" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and women and men have separate columns.""" start="00:17:58.056" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The colour gives us a quick impression,""" start="00:18:01.360" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the text keeps the percentages""" start="00:18:03.590" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and counts visible.""" start="00:18:05.989" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Look at crew: the women's rate comes from""" start="00:18:07.290" video="mainVideo-plots" id="subtitle"]]
[[!template text="""23 people, while the men's comes from 867.""" start="00:18:10.866" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Now let's bring age into""" start="00:18:14.550" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the picture as well.""" start="00:18:16.489" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Here we have a bubble""" start="00:18:18.040" video="mainVideo-plots" id="subtitle"]]
[[!template text="""for each age band and class or crew group.""" start="00:18:21.790" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Colour shows survival rate,""" start="00:18:26.060" video="mainVideo-plots" id="subtitle"]]
[[!template text="""while bubble area shows how""" start="00:18:28.380" video="mainVideo-plots" id="subtitle"]]
[[!template text="""many people are in that group.""" start="00:18:30.534" video="mainVideo-plots" id="subtitle"]]
[[!template text="""So a tiny bright bubble means""" start="00:18:32.840" video="mainVideo-plots" id="subtitle"]]
[[!template text="""a high rate among a few people.""" start="00:18:34.616" video="mainVideo-plots" id="subtitle"]]
[[!template text="""This view uses the 2,205""" start="00:18:36.520" video="mainVideo-plots" id="subtitle"]]
[[!template text="""people whose ages are known.""" start="00:18:39.129" video="mainVideo-plots" id="subtitle"]]
[[!template text="""For the last plot we will turn those same""" start="00:18:42.050" video="mainVideo-plots" id="subtitle"]]
[[!template text="""age groups into a three-dimensional view.""" start="00:18:45.446" video="mainVideo-plots" id="subtitle"]]
[[!template text="""For this last plot, let's look""" start="00:18:48.760" video="mainVideo-plots" id="subtitle"]]
[[!template text="""at the same age groups as a skyline.""" start="00:18:51.162" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The columns make""" start="00:18:54.680" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the population sizes stand out.""" start="00:18:55.644" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Height shows people aboard""" start="00:18:57.400" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and colour still shows survival rate.""" start="00:18:59.814" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The large groups of young adults""" start="00:19:03.120" video="mainVideo-plots" id="subtitle"]]
[[!template text="""now look like tall buildings.""" start="00:19:05.116" video="mainVideo-plots" id="subtitle"]]
[[!template text="""It's the same data we just saw as bubbles,""" start="00:19:06.870" video="mainVideo-plots" id="subtitle"]]
[[!template text="""but with a different way of drawing them.""" start="00:19:09.558" video="mainVideo-plots" id="subtitle"]]
[[!template text="""We can still trace it back""" start="00:19:12.120" video="mainVideo-plots" id="subtitle"]]
[[!template text="""which is our SHAPE provenance idea.""" start="00:19:13.923" video="mainVideo-plots" id="subtitle"]]
[[!template text="""That's a good place""" start="00:19:16.260" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to finish the examples,""" start="00:19:17.512" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and I'll leave you with the sources""" start="00:19:18.950" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and somewhere to keep exploring.""" start="00:19:21.788" video="mainVideo-plots" id="subtitle"]]
[[!template text="""But before we finish, let me point you to""" start="00:19:24.310" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the sources and the rest of the material.""" start="00:19:27.423" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The DOI links here take you""" start="00:19:30.460" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to the dataset, ROOT and SHAPE,""" start="00:19:32.691" video="mainVideo-plots" id="subtitle"]]
[[!template text="""so you can follow up on the data""" start="00:19:35.160" video="mainVideo-plots" id="subtitle"]]
[[!template text="""and the ideas behind the session.""" start="00:19:37.116" video="mainVideo-plots" id="subtitle"]]
[[!template text="""If you'd like a deeper dive into""" start="00:19:39.070" video="mainVideo-plots" id="subtitle"]]
[[!template text="""the open educational resource,""" start="00:19:41.255" video="mainVideo-plots" id="subtitle"]]
[[!template text="""visit https://gnuplot.emaix.org.""" start="00:19:43.240" video="mainVideo-plots" id="subtitle"]]
[[!template text="""The QR code takes you there too.""" start="00:19:45.780" video="mainVideo-plots" id="subtitle"]]
[[!template text="""You will find the lessons,""" start="00:19:48.580" video="mainVideo-plots" id="subtitle"]]
[[!template text="""code and datasets, ready for you""" start="00:19:50.520" video="mainVideo-plots" id="subtitle"]]
[[!template text="""to try things out yourself.""" start="00:19:52.649" video="mainVideo-plots" id="subtitle"]]
[[!template text="""Happy plotting!""" start="00:19:54.390" video="mainVideo-plots" id="subtitle"]]

</div>Questions or comments? Please e-mail [bossert@itc.rwth-aachen.de](mailto:bossert@itc.rwth-aachen.de?subject=Comment%20for%20EmacsConf%202023%20plots%3A%20Plots%20with%20ROOTs%20and%20SHAPEs%3A%20Resilient%20data%20visualization%20with%20Emacs%2C%20Org%20and%20gnuplot)


<!-- End of emacsconf-publish-after-page -->