-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
337 lines (297 loc) · 11.4 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>GOING DOWN TO SOUTH PARK</title>
<meta charset="utf-8">
<meta name="description" content="GOING DOWN TO SOUTH PARK">
<meta name="author" content="PATRIK DRHLÍK">
<meta name="generator" content="slidify" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" href="libraries/frameworks/io2012/css/default.css" media="all" >
<link rel="stylesheet" href="libraries/frameworks/io2012/css/phone.css"
media="only screen and (max-device-width: 480px)" >
<link rel="stylesheet" href="libraries/frameworks/io2012/css/slidify.css" >
<link rel="stylesheet" href="libraries/highlighters/highlight.js/css/tomorrow.css" />
<base target="_blank"> <!-- This amazingness opens all links in a new tab. --> <link rel=stylesheet href="./assets/css/main.css"></link>
<link rel=stylesheet href="./assets/css/ribbons.css"></link>
<!-- Grab CDN jQuery, fall back to local if offline -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="libraries/widgets/quiz/js/jquery.js"><\/script>')</script>
<script data-main="libraries/frameworks/io2012/js/slides"
src="libraries/frameworks/io2012/js/require-1.0.8.min.js">
</script>
</head>
<body style="opacity: 0">
<slides class="layout-widescreen">
<!-- LOGO SLIDE -->
<slide class="title-slide segue nobackground">
<img class="title-logo" src="assets/img/boys.png">
<hgroup class="">
<h1>GOING DOWN TO SOUTH PARK</h1>
<h2>to make some tidytext analysis</h2>
<p>PATRIK DRHLÍK<br/>freelance data scientist</p>
</hgroup>
<img class="title-avatar" src="assets/img/southparkme.png">
<article></article>
</slide>
<!-- SLIDES -->
<slide class="" id="slide-1" style="background:;">
<hgroup>
<h2>Web scraping and R packages</h2>
</hgroup>
<article data-timings="">
<p><img src="assets/img/fandom.png" style="width: 10%" />
<a href="https://southpark.wikia.com/wiki/Portal:Scripts">South Park episode transcripts</a></p>
<p><img src="assets/img/imdb.svg" style="width: 10%" />
<a href="https://www.imdb.com/title/tt0121955/episodes">IMDB South Park episode ratings</a></p>
<p>Main R packages: <a href="https://www.tidyverse.org/">tidyverse</a>,
<a href="https://www.tidytextmining.com/">tidytext</a>,
<a href="https://github.com/pdrhlik/southparkr">southparkr</a></p>
<p><img src="assets/img/tidyverse.png" style="width: 10%" />
<img src="assets/img/tidytextmining.png" style="width: 10%" />
<img src="assets/img/southparkme.png" style="width: 15%" /></p>
<p><img src="assets/img/griefer.png" style="position: absolute; right: 10px; bottom: 50px;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-2" style="background:;">
<hgroup>
<h2>Glimpse at the data</h2>
</hgroup>
<article data-timings="">
<pre><code>## Observations: 312,767
## Variables: 16
## $ season <fct> Season Thirteen, Season One, Season Sixt...
## $ season_number <int> 13, 1, 16, 5, 15, 3, 11, 9, 13, 3, 21, 8...
## $ season_episode_number <dbl> 7, 10, 14, 10, 10, 4, 1, 2, 5, 15, 6, 1,...
## $ episode <fct> Fatbeard, Damien, Obama Wins!, How to Ea...
## $ episode_number <int> 188, 10, 237, 75, 219, 35, 154, 127, 186...
## $ character <chr> "cartman", "stan", "kyle", "jonesy", "mr...
## $ year <int> 2009, 1997, 2012, 2001, 2011, 1999, 2007...
## $ line_number <int> 63817, 4528, 76451, 31001, 72011, 16346,...
## $ word <chr> "hey", "bubye", "program", "wrong", "gen...
## $ word_stem <chr> "hei", "buby", "program", "wrong", "gene...
## $ swear_word <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE...
## $ episode_name <chr> "Fatbeard", "Damien", "Obama Wins!", "Ho...
## $ air_date <date> 2009-04-22, 1998-02-04, 2012-11-07, 200...
## $ user_rating <dbl> 8.2, 8.1, 7.5, 8.1, 7.6, 6.7, 8.8, 8.8, ...
## $ user_votes <dbl> 1578, 1703, 1156, 1488, 1229, 1546, 2356...
## $ score <int> NA, NA, NA, -2, 2, NA, NA, NA, NA, NA, N...
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-3" style="background:;">
<hgroup>
<h2>Basic statistics about the show</h2>
</hgroup>
<article data-timings="">
<div class="basic-stats-table">
<table class="table" style="margin-left: auto; margin-right: auto;">
<thead>
<tr>
<th style="text-align:left;display: none;"> figures </th>
<th style="text-align:left;display: none;"> text </th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;font-family: southpark;"> 21 </td>
<td style="text-align:left;"> Number of seasons </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 287 </td>
<td style="text-align:left;"> Number of episodes </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 914 475 </td>
<td style="text-align:left;"> Number of words </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 312 767 </td>
<td style="text-align:left;"> No stopwords (a, the, this, ...) </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 6 170 </td>
<td style="text-align:left;"> Number of swear words </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 1.97 </td>
<td style="text-align:left;"> % of swear words </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 34.2 </td>
<td style="text-align:left;"> % used for analysis </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 4 403 </td>
<td style="text-align:left;"> Number of characters </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 8.14 </td>
<td style="text-align:left;"> Mean IMDB rating </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 9.6 </td>
<td style="text-align:left;"> Scott Tenorman Must Die (S05E04) </td>
</tr>
<tr>
<td style="text-align:left;font-family: southpark;"> 6.3 </td>
<td style="text-align:left;"> A Million Little Fibers (S10E05) </td>
</tr>
</tbody>
</table>
</div>
<p><img src="assets/img/mrgarrison.png" style="position: absolute; right: 10px; bottom: 50px;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-4" style="background:;">
<hgroup>
<h2>Overall sentiment analysis</h2>
</hgroup>
<article data-timings="">
<p><img src="assets/fig/unnamed-chunk-4-1.png" title="plot of chunk unnamed-chunk-4" alt="plot of chunk unnamed-chunk-4" style="display: block; margin: auto;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-5" style="background:;">
<hgroup>
<h2>Episode popularity</h2>
</hgroup>
<article data-timings="">
<p><img src="assets/fig/unnamed-chunk-5-1.png" title="plot of chunk unnamed-chunk-5" alt="plot of chunk unnamed-chunk-5" style="display: block; margin: auto;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="naughty-episodes" style="background:;">
<hgroup>
<h2>Are naughty episodes more popular?</h2>
</hgroup>
<article data-timings="">
<p><img src="assets/fig/unnamed-chunk-6-1.png" title="plot of chunk unnamed-chunk-6" alt="plot of chunk unnamed-chunk-6" style="display: block; margin: auto;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="mysterion" style="background:;">
<hgroup>
<h2>So who's the naughtiest character?</h2>
</hgroup>
<article data-timings="">
<p><img src="assets/img/mysterion.png" style="position: absolute; width: 35%; left: 30%;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-8" style="background:;">
<hgroup>
<h2>It's Kenny!</h2>
</hgroup>
<article data-timings="">
<p><img src="assets/img/kenny.png" style="position: absolute; width: 35%; left: 30%;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-9" style="background:;">
<article data-timings="">
<p><img src="assets/fig/unnamed-chunk-7-1.png" alt="plot of chunk unnamed-chunk-7"></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-10" style="background:;">
<hgroup>
<h2>Contact</h2>
</hgroup>
<article data-timings="">
<p><img src="assets/img/linkedin.png" width="32px" />
<a href="https://www.linkedin.com/in/patrik-drhlik/">https://www.linkedin.com/in/patrik-drhlik/</a></p>
<p><img src="assets/img/github.png" width="32px" />
<a href="https://github.com/pdrhlik">https://github.com/pdrhlik</a></p>
<p><img src="assets/img/twitter.png" width="32px" />
<a href="https://twitter.com/PatrioScraper">@PatrioScraper</a></p>
<p><img src="assets/img/mail.png" width="32px" />
<a href="mailto:[email protected]">[email protected]</a></p>
<p><img src="assets/img/blog.png" width="32px" />
<a href="https://www.patrio.blog">https://www.patrio.blog</a></p>
<p><img src="assets/img/southparkme-contact.png" class="avatar-contact" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="backdrop"></slide>
</slides>
<div class="pagination pagination-small" id='io2012-ptoc' style="display:none;">
<ul>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=1 title='Web scraping and R packages'>
1
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=2 title='Glimpse at the data'>
2
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=3 title='Basic statistics about the show'>
3
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=4 title='Overall sentiment analysis'>
4
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=5 title='Episode popularity'>
5
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=6 title='Are naughty episodes more popular?'>
6
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=7 title='So who's the naughtiest character?'>
7
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=8 title='It's Kenny!'>
8
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=9 title='NA'>
9
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=10 title='Contact'>
10
</a>
</li>
</ul>
</div> <!--[if IE]>
<script
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
</script>
<script>CFInstall.check({mode: 'overlay'});</script>
<![endif]-->
</body>
<!-- Load Javascripts for Widgets -->
<!-- LOAD HIGHLIGHTER JS FILES -->
<script src="libraries/highlighters/highlight.js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
</html>