-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
executable file
·254 lines (232 loc) · 8.98 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Twimoji</title>
<meta name="description" content="A fluffy experiment in mapping emoji use in tweets">
<meta name="author" content="Lauren Ancona & Christopher Tufts">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<meta property="og:url" content="http://laurenancona.github.io/twimoji"/>
<meta property="og:site_name" content="Twimoji"/>
<meta property="og:image" content="http://laurenancona.github.io/twimoji/presentation/img/thumb.png" />
<meta name="twitter:card" content="photo" />
<meta name="twitter:site" content="@laurenancona" />
<meta name="twitter:creator" content="@devlintufts" />
<link rel="image_src" href="presentation/img/thumb.png"/>
<meta property="og:description"content="A fluffy experiment in mapping emoji use in tweets" />
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/twimoji.css">
<link rel="stylesheet" href="css/theme/jawn.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/atelier-forest.dark.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".convert-emoji").each(function() {
var original = $(this).html();
// use .shortnameToImage if only converting shortnames (for slightly better performance)
var converted = emojione.toImage(original);
$(this).html(converted);
});
});
</script>
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<!-- Google Tag Manager, of course -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W6WFRN"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W6WFRN');</script>
<!-- End Google Tag Manager -->
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1><strong>Twimoji</strong></h1>
<h4>A fluffy experiment in <br />analyzing emoji use in tweets</h4><br />
<p>
<h4><a href="https://twitter.com/laurenancona">Lauren Ancona</a> @laurenancona <br>
<a href="https://twitter.com/devlintufts">Christopher Tufts</a> @devlintufts</h4>
</p>
</section>
<section data-markdown>
<script type="text/template">
#K.I.S.S.
---
[Hands-free tweet collector](https://ifttt.com/view_embed_recipe/305098-collect-tweets-with-location)
![](presentation/img/IFTTT.png)
</script>
</section>
<section>
<h1>Overview</h1>
<hr>
<ul>
<li>May 9 - July 11, 2015</li>
<li>28,799 location-enabled tweets</li>
<li>7,363 unique users</li>
</ul>
</section>
<section data-background-transition-speed="slow" data-background-iframe="http://laurenancona.github.io/twimoji/web/all-tweets.html">
</section>
<section>
<h3>Tweet Cleaning</h3>
<hr>
<pre><code data-trim>
emoji.frequency <- matrix(NA, nrow = nrow(ds), ncol = nrow(emoticons))
for(i in 1:nrow(emoticons)){
emoji.frequency[,i] <- regexpr(emoticons$bytes[i],ds$text, useBytes = T )
}
emoji.per.tweet <- rowSums(emoji.frequency > -1)
emoji.indexes <- which( emoji.per.tweet > 0)
emoji.ds <- NULL
for(i in emoji.indexes){
valid.cols <- which(emoji.frequency[i,]>-1)
for(j in valid.cols){
emoji.ds <- rbind(cbind(ds[i,], emoticons[j,]), emoji.ds)
}
}
</code></pre>
</section>
<!-- <section>
<h2>Fragment Styles</h2>
<p>There's different types of fragments, like:</p>
<p class="fragment grow">grow</p>
<p class="fragment shrink">shrink</p>
<p class="fragment fade-out">fade-out</p>
<p class="fragment current-visible">current-visible</p>
<p class="fragment highlight-red">highlight-red</p>
<p class="fragment highlight-blue">highlight-blue</p>
</section> -->
<section>
<h1>Emoji</h1>
<hr>
<ul>
<li>~ 25% of tweets contained emoji</li>
<li>590 unique emoji</li>
<li>7,131 tweets</li>
</ul>
</section>
<section>
<h3>Top Emoji</h2>
<table>
<thead>
<tr>
<th>Count</th>
<th>Img</th>
<th>Unicode</th>
<th>Desc</th>
</tr>
</thead>
<tbody>
<tr>
<td>1085</td>
<td><img src="//raw.githubusercontent.com/laurenancona/twimoji/gh-pages/presentation/img/U%2B1F602.png" width="90px"></td>
<td>U+1F602</td>
<td>face with tears of joy</td>
<tr>
<td>519</td>
<td><img src="//raw.githubusercontent.com/laurenancona/twimoji/gh-pages/presentation/img/U%2B1F629.png" width="90px"></td>
<td>U+1F629</td>
<td>weary face</td>
</tr>
<tr>
<td>430</td>
<td><img src="//raw.githubusercontent.com/laurenancona/twimoji/gh-pages/presentation/img/U%2B1F62D.png" width="90px"></td>
<td>U+1F62D</td>
<td>loudly crying face</td>
</tr>
<tr>
<td>402</td>
<td><img src="//raw.githubusercontent.com/laurenancona/twimoji/gh-pages/presentation/img/U%2B1F60D.png" width="90px"></td>
<td>U+1F60D</td>
<td>smiling face with heart-shaped eyes</td>
</tr>
</tbody>
</table>
</section>
<section data-background-iframe="http://laurenancona.github.io/twimoji/web/emoji-tweets.html">
<!-- <p class="legend">All Tweets</p> -->
</section>
<section data-markdown>
# Possibilities
---
* Geo-analysis with [available](http://censusreporter.org/) [open data](https://www.opendataphilly.org)
- True on-the-fly rendering as map markers (JS is hard)
* [Lexical research](http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0073791)
- gender, age
- psychological characteristics
</section>
<section data-markdown>
# Caveats
---
* Estimated only 1% of tweets have location
* Emoji meaning vs. use
* Inconsistent rendering across platforms
</section>
<section data-markdown>
# Resources
---
* [Emoji Cheat Sheet](http://www.emoji-cheat-sheet.com/)
* [Tim Whitlock: Emoji Utils](http://apps.timwhitlock.info/emoji)
* [CartoDB (Torque.js)](http://cartodb.com)
</section>
<section data-markdown>
<script type="text/template">
####Friday, July 17, 2015
##[World Emoji Day](http://worldemojiday.com/)
![](presentation/img/17-july.png)
</script>
</section>
<section data-markdown>
<script type="text/template">
Code + data:
##[bit.ly/twimoji](http://bit.ly/twimoji)
---
[@laurenancona](https://twitter.com/laurenancona) | [@devlintufts](https://twitter.com/devlintufts)
</script>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
hideAddressBar: true,
touch: true,
previewLinks: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>