-
Notifications
You must be signed in to change notification settings - Fork 7
/
dataviz-hub_bigdata.Rmd
601 lines (363 loc) · 19.1 KB
/
dataviz-hub_bigdata.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
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
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
---
title:
output:
revealjs::revealjs_presentation:
theme: simple
highlight: haddock
dev: svg
css: assets/css/dvh-rjs.css
includes:
in_header: include/header.html
---
<link href="//fonts.googleapis.com/css?family=Bree+Serif|Cabin+Sketch|Fredericka+the+Great|Tajawal" rel="stylesheet">
## dataviz.shef {data-background="https://s.cdpn.io/79/light-beams.jpg"}
### "Our plans and hopes for the Data Visualisation Hub"
<br>
#### Anna Krystalli
<small>Research Software Engineering, TUoS</small>
##### 7th June 2018
######
```{r, echo=FALSE, warning=FALSE, message=FALSE}
library(googlesheets)
library(tidyverse)
survey <- gs_url("https://docs.google.com/spreadsheets/d/1WsHUeGBZOKLkBnRJujybqrzeoTSO34ym2cG5-JfoQZE", visibility = "private") %>% gs_read()
```
<img src="assets/logos/TUOS_PRIMARY_LOGO_LINEAR_BLACK.png" height="100px">
# Background {data-background="http://www.karenchance.com/background_e.jpg" data-background-repeat="repeat"}
## Why data visualisation? {data-background="assets/storytelling-inv.jpg"}
<br>
> - Data visualisation `r emo::ji("arrow_right")` an integral part of research communication
> - Exciting new open source `r emo::ji("bar_chart")` `r emo::ji("chart_with_upwards_trend")` `r emo::ji("chart_with_downwards_trend")` technologies are revolutionising **the potential for dataviz as an impactful research output.**
> - Little support for training in best practice and tooling
## gapminder.org: 2006 {data-background="assets/hanslibdata.png"}
#### [liberating stories from data](https://youtu.be/hVimVzgtD6w?t=15m3s)
## gapminder.org: today
#### liberating stories from data
<iframe src="https://www.gapminder.org/tools/?embedded=true#$chart-type=bubbles" style="width: 100%; height: 500px; margin: 0 0 0 0; border: 1px solid grey;" allowfullscreen></iframe>
## gapmider at our fingertips
```{r, fig.show = "animate", message=FALSE, warning=FALSE}
library(ggplot2)
p <- ggplot(gapminder::gapminder, aes(gdpPercap, lifeExp, size = pop, color = continent, frame = year)) +
geom_point() + scale_x_log10() + theme_bw()
```
```{r, message=FALSE, warning=FALSE, fig.height=4}
plotly::ggplotly(p)
```
## with power comes responsibility
![](assets/miscor_chart.svg)
<http://www.tylervigen.com/spurious-correlations>
## Calling Bulls__t
##### Data Reasoning in a Digital World: Syllabus
<br>
<small>
**[Week 6. Data visualization](http://callingbullshit.org/syllabus.html#Visual).** Data graphics can be **powerful tools for understanding information**, but they can also be **powerful tools for misleading audiences**. We explore the many ways that data graphics can steer viewers toward misleading conclusions.
- Edward Tufte (1983) _The Visual Display of Quantitative Information_ Chapters 2 (Graphical integrity) and 5 (Chartjunk: vibrations, grids, and ducks).
- Tools and tricks: [Misleading axes](http://callingbullshit.org/tools/tools_misleading_axes.html)
- Tools and tricks: [Proportional Ink](http://callingbullshit.org/tools/tools_proportional_ink.html)
</small>
## background: recap
> - Huge **opportunities**.
> - **Upskilling** might be required but worth it
> - Focus on **Best Practice** necessary.
## Enter dataviz.shef {data-background="https://s.cdpn.io/79/light-beams.jpg"}
A joint initiative between:
- **The University Library**
- **Corporate Information and Computing Services (CICS)**
- **Research Software Engineering (RSE)**
<br>
> - soon joined forces with the [Oxford Interactive Data Network](https://idn.it.ox.ac.uk/)
## dataviz.shef goal:
<br>
> Promote and build community around data visualisation at the University of Sheffield
## The team
<img src="assets/team.svg" height="550px">
## previous members
<img src="assets/lost-team.svg" height="550px">
## {data-background="assets/orda.png"}
<br>
> #### [orda.shef.ac.uk](https://orda.shef.ac.uk)
## {data-background="assets/orda-viz.png"}
<br>
> #### [orda.shef.ac.uk/visualisations/](https://orda.shef.ac.uk/visualisations/)
## Visualisation Showcase goals
<br>
> - Help promote researchers' reposited data
> - Promote data visualisation as impactful research outputs
## Path to achieving them {data-transition="fade-in}
<br>
> Q: How do we help our researchers make the most of their data and modern data visualisation tools?
## Path to achieving them {data-transition="fade-in}
<br>
> Q: How do we help our researchers make the most of their data and modern data visualisation tools?
<br>
### Let's ask them!
# TUoS Data Visualisation Survey {data-background="assets/survey-form.png"}
```{r, echo = F}
theme_lab <- function () {
theme_grey(base_size = 11.5, base_family = "Helvetica") %+replace%
theme(
# remove the plot background and border
plot.background = element_blank(),
panel.background = element_blank(),
panel.border = element_blank(),
# make the legend and strip background transparent
legend.background = element_rect(fill = "transparent", colour = NA),
legend.key = element_rect(fill = "transparent", colour = NA),
strip.background = element_rect(fill = "transparent", colour = NA),
# add light, dotted major grid lines only
panel.grid.major = element_line(linetype = "dotted", colour = "lightcyan3", size = 0.3),
panel.grid.minor = element_blank(),
# remove the axis tick marks and hide axis lines
axis.ticks = element_blank(),
axis.line = element_line(color = "#FFFFFF", size = 0.3),
# modify the bottom margins of the title and subtitle
plot.title = element_text(size = 18, colour = "black", hjust = 0, face = "bold",
#margin = margin(b = 4)
),
plot.subtitle = element_text(size = 12, colour = "black", face = "bold", hjust = 0,
# margin = margin(b = 10)
),
# add padding to the caption
plot.caption = element_text(size = 10, colour = "#212121", hjust = 1,
#margin = margin(t = 15)
),
# change to Helvetica for axes titles, tick labels, legend title and legend key, and strip text
axis.title = element_text(family = "Helvetica", size = 11, colour = "#757575", face = "plain", hjust = 1),
axis.text = element_text(family = "Helvetica", size = 10, colour = "#757575", face = "plain"),
legend.title = element_text(size = 12, colour = "#757575"),
legend.text = element_text(size = 10, colour = "#757575"),
strip.text = element_text(family = "Helvetica", size = 12, colour = "#757575", face = "plain")
)
}
cap_first <- function(X){
simple_cap <- function(x) {
x <- trimws(x)
s <- strsplit(x, " ")[[1]]
out <- paste(toupper(substring(s, 1,1)), substring(s, 2),
sep="", collapse=" ")
out <- gsub("And", "and", out)
out <- gsub("&", "and", out)
out <- gsub("Of", "of", out)
out
}
sapply(X, simple_cap, USE.NAMES = F)
}
```
In Dec 2107, we launched a University Wide Survey on data visualisation.
## Department
```{r, echo=F, warning=FALSE, message=FALSE}
pal <-RColorBrewer::brewer.pal(8,"Dark2")
dep <- survey$Department %>% table
deps <- names(dep) %>% stringr::str_sub(-3,-1)
deps[deps == "her"] <- "other"
wordcloud::wordcloud(deps, dep, min.freq = 1, colors=pal)
```
## Position
```{r, echo = F}
survey %>% mutate(Position = factor(cap_first(Position),
cap_first(c("Postgraduate student", "Postdoctoral researcher",
"Research Associate", "Lecturer", "Senior Lecturer", "Professor",
"Other")))) %>%
count(position = Position) %>% mutate(pct = prop.table(n) * 100) %>%
ggplot(aes(x = position, y = n, color = position, fill = position)) +
geom_bar(stat = 'identity', position = 'dodge') +
geom_text(aes(y = pct + .5, # nudge above top of bar
label = paste0(sprintf("%0.1f", round(pct, digits = 1)), '%')), # prettify
position = position_dodge(width = .9),
size = 4) +
theme(axis.title.x=element_blank(),
axis.text.x=element_blank(),
axis.ticks.x=element_blank())
```
## Analysis Frameworks
```{r, echo=FALSE}
survey %>% rename(frameworks = `What analysis frameworks are you familiar with`) %>%
select(frameworks) %>%
separate_rows(frameworks) %>% mutate(frameworks = cap_first(frameworks)) %>%
filter(!frameworks %in% c("Is", "An", "Analysis", "Framework", "")) %>%
group_by(frameworks) %>%
count() %>% arrange(n) %>% ungroup() %>%
mutate(frameworks = factor(frameworks, levels = frameworks)) %>%
# plot
ggplot(aes(x = n, y = frameworks)) +
geom_segment(aes(x = 0, xend = n,
y = frameworks,
yend = frameworks), colour = "gray28") +
geom_point(colour = "steelblue",
size = 3, alpha = 0.8) +
labs(title = "", subtitle = "What analysis frameworks are you familiar with?",
caption = paste0("Source: TUoS Data Visualisation Survey | n = ", nrow(survey)), x = NULL, y = NULL,
fill = NULL) + theme_lab() #+
#theme(panel.grid.major = element_blank(),
#axis.text.y = element_text(hjust = 0))
```
## Current Data Visualisation tools
```{r, echo = F}
survey %>% rename(current = `Which (if any) tools do you already use to produce visualisations?`) %>%
select(current) %>%
separate_rows(current, sep = ",") %>% mutate(current = cap_first(current)) %>%
filter(!current %in% c("Is", "an", "analysis", "framework", "")) %>%
group_by(current) %>%
count() %>% arrange(n) %>% ungroup() %>%
mutate(current = factor(current, levels = current)) %>%
# plot
ggplot(aes(x = n, y = current)) +
geom_segment(aes(x = 0, xend = n,
y = current,
yend = current), colour = "gray28") +
geom_point(colour = "steelblue",
size = 3, alpha = 0.8) +
labs(title = "", subtitle = "Which (if any) tools do you already use to produce visualisations?",
caption = paste0("Source: TUoS Data Visualisation Survey | n = ", nrow(survey)), x = NULL, y = NULL) +
theme_lab()
```
## Aspirational Data Visualisation tools
```{r, echo = F}
library(stringr)
survey %>% rename(current = `Which (if any) tools technologies would you be interested in learning more about?`) %>%
select(current) %>%
separate_rows(current, sep = ",") %>%
mutate(current = gsub("I Am Interested In Learning About Visualizations But Don't Know What Each Programme offers. ",
"", cap_first(current))) %>%
filter(!current %in% c("Is", "an", "analysis", "framework", "")) %>%
group_by(current) %>%
count() %>% arrange(n) %>% ungroup() %>%
mutate(current = factor(current, levels = current)) %>%
# plot
ggplot(aes(x = n, y = current)) +
geom_segment(aes(x = 0, xend = n,
y = current,
yend = current), colour = "gray28") +
geom_point(colour = "steelblue",
size = 3, alpha = 0.8) +
scale_y_discrete(labels = function(x) str_wrap(x, width = 70)) +
labs(title = "", subtitle = str_wrap("Which (if any) tools/technologies would you be interested in learning more about?", width = 50),
caption = paste0("Source: TUoS Data Visualisation Survey | n = ", nrow(survey)), x = NULL, y = NULL) +
theme_lab()
```
## Experience
```{r, echo = F, warning=FALSE, message=FALSE}
survey %>% mutate(experience = factor(`How experienced are you in producing visualisations?`,
levels = as.character(1:10))) %>%
select(experience) %>%
#group_by(experience) %>%
count(experience = experience) %>% mutate(pct = prop.table(n) * 100) %>%
ggplot(aes(x = experience, y = n, color = experience, fill = experience)) +
geom_bar(stat = 'identity', position = 'dodge') +
geom_text(aes(y = pct + .5, # nudge above top of bar
label = paste0(sprintf("%0.1f", round(pct, digits = 1)), '%')), # prettify
position = position_dodge(width = .9),
size = 4) +
labs(subtitle = "How experienced are you in producing visualisations?") +
theme_lab() +
theme(axis.title.x=element_blank(),
axis.title.y=element_blank(),
axis.text.x=element_text(face = "bold", size = 14),
legend.position="none",
axis.ticks.x=element_blank())
```
## Main take aways
> - Still a lot of Excel use
> - R and Python top of researchers aspirations
> - Broad interest in a variety of more niche tools
> - Skill, expertise and level of interest are distributed
## Proposed action
> Develop capacity through **community**
<iframe src="https://giphy.com/embed/i04wdjzz8xfyM" width="480" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/network-i04wdjzz8xfyM">via GIPHY</a></p>
## Develop community of practice
<br>
`r emo::ji("raised_hands")` `r emo::ji("woman_technologist")` `r emo::ji("handshake")` `r emo::ji("man_scientist")` `r emo::ji("woman_student")` `r emo::ji("handshake")` `r emo::ji("man_teacher")` `r emo::ji("man_technologist")` `r emo::ji("handshake")` `r emo::ji("woman_scientist")` `r emo::ji("man_student")` `r emo::ji("woman_teacher")` `r emo::ji("raised_hands")` `r emo::ji("dancing_women")`
<br>
#### Support through:
> - **Documentation** on dataviz best practice and use of tools
> - **Communication** channels
> - Capacity building opportunities through **Events**
# Documentation {data-background="http://brazoslawyers.com/wp-content/uploads/2015/01/Dollarphotoclub_52871584.jpg" .inverted}
## OxShef
#### Main home of best practice and tooling documentation
> - **OxShef: Charts** <http://oxshef-charts.netlify.com/index.html>
> - **OxShef: Tools** <http://oxshef-charts.netlify.com/index.html>
> - twitter: **@oxshef_dataviz**
> Full credits for work so far to [Martin Hadley](https://twitter.com/martinjhnhadley) of The [University of Oxford IDN](https://idn.it.ox.ac.uk/)]
## {data-background-iframe="http://oxshef-charts.netlify.com/index.html"}
## {data-background-iframe="http://oxshef-tools.netlify.com/index.html"}
## Chart **type** vs **tool** matrix
> - Comprehensive list of chart types
> - Resources for developing the **same charts using different tools.**
> - Initial focus on **`R`** and **`Python`** but open for expansion
## dataviz.shef:
#### Data Visualisation Hub website
> - Information on community events and activities
> - Documentation specific to the ORDA Data Visualisation showcase
## {data-background-iframe="http://dataviz.shef.ac.uk/"}
## Open Source Documentation
> - All materials are CC-BY
> - All materials are open for contribution on GitHub
> - Got a suggestion `r emo::ji("bulb")`? Bug report? Feel free to open an issue.
# Communication {data-background="https://www.telegraph.co.uk/content/dam/technology/Spark/btconnectingbritain/Bolshevik-telephone-switchboard.jpg?imwidth=1400" .inverted}
##
<div class="container">
<div class="col">
### [Google group](https://groups.google.com/a/sheffield.ac.uk/forum/?hl=en#!forum/shef_dataviz-group)
<img src="assets/ggroup-dv.png" height="300px">
<small>
> - low volume announcements
</small>
</div>
<div class="col">
### [Slack community](https://join.slack.com/t/shef-dataviz/signup)
<img src="assets/slack-dv.png" height="300px">
<small>
> - free sharing
> - good for sharing useful links, blogs, tutorials, questions and chat.
> - say **hello** ```r emo::ji("wave")``` in the ***#welcome*** **channel!**
</small>
</div>
</div>
## Data Visualisation Hub Blog {data-background-iframe="http://dataviz.shef.ac.uk/blog/"}
# Events {data-background="https://s3.amazonaws.com/eclincher.wp.upload/wp-content/uploads/2017/11/30053226/how-to-build-online-communities-on-social-media.jpeg"}
## Launch {data-background-iframe="http://dataviz.shef.ac.uk/launch/hub-launch-schedule/"}
## Workshops
Instructor and/or peer to peer led.
### Upcoming
- Data Visualisation in `R` using [`ggplot2`](http://ggplot2.tidyverse.org/) (Jun-Jul)
<br>
### Wishlist
> - Data Visualisation in `Python` using [**`altair`**](https://github.com/altair-viz/altair)
> - Data Visualisation in [**`vegalite`**](https://vega.github.io/vega-lite/)
> - Interactive Data Visualisation in [**`Shiny`**](https://shiny.rstudio.com/) (`R`) & [**`Dash`**](https://plot.ly/products/dash/) (`Python`)
> - Interactive mapping with [**`Leaflet`**](https://rstudio.github.io/leaflet/)
## Symposia
<div class="container">
<div class="col">
<img src="https://pbs.twimg.com/media/DQMVcJDWAAAu7M9.jpg:large">
</div>
<div class="col">
<img src="https://pbs.twimg.com/media/DQM9cEqW4AAxc9J.jpg:large">
</div>
</div>
<small>
[_The Missing Link in Publishing: Interactive Data Visualisation_](https://idn.it.ox.ac.uk/event/missing-link-publishing-interactive-data-visualisation)
_4th December 2017, University of Oxford_
</small>
## Hackathons
#### [NBN Sheffield R Users Group hack:](http://sheffieldr.github.io/nbn-hack/)
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"><a href="https://twitter.com/Sheffield_R_?ref_src=twsrc%5Etfw">@Sheffield_R_</a> <a href="https://twitter.com/NBNTrust?ref_src=twsrc%5Etfw">@NBNTrust</a> <a href="https://twitter.com/hashtag/BiodiversityHack?src=hash&ref_src=twsrc%5Etfw">#BiodiversityHack</a> is go! First stage: data dive & brainstorm! <a href="https://twitter.com/hashtag/rstats?src=hash&ref_src=twsrc%5Etfw">#rstats</a> <a href="https://twitter.com/hashtag/openscience?src=hash&ref_src=twsrc%5Etfw">#openscience</a> <a href="https://t.co/0N9Re8roM5">pic.twitter.com/0N9Re8roM5</a></p>— annakrystalli (@annakrystalli) <a href="https://twitter.com/annakrystalli/status/704723751007604737?ref_src=twsrc%5Etfw">March 1, 2016</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
## Coding clubs
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">Soooooo cool to be joining <a href="https://twitter.com/tbyhdgs?ref_src=twsrc%5Etfw">@tbyhdgs</a> and <a href="https://twitter.com/embl?ref_src=twsrc%5Etfw">@embl</a> Heidelberg <a href="https://twitter.com/hashtag/BioIT?src=hash&ref_src=twsrc%5Etfw">#BioIT</a> coding club remotely to work through D3.js <br><br>😃😃😃😃 <a href="https://t.co/2bIxSrScMo">pic.twitter.com/2bIxSrScMo</a></p>— annakrystalli (@annakrystalli) <a href="https://twitter.com/annakrystalli/status/959097031628414976?ref_src=twsrc%5Etfw">February 1, 2018</a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
## Meetups
#### Sheffield Data For Good
Bringing together the data and social expertise in Sheffield to help tackle the city’s social problems
<img src="assets/sheffdatagood.svg" height="300px">
## Success is in the network {data-background="https://raw.githubusercontent.com/acabunoc/open-source-strangeloop-2016/gh-pages/img/mentorship_14.jpg"}
# Get involved!
##
> - Share your data visualisations on ORDA showcase
> - Join the google group &/or slack community
> - Contribute to the blog
> - Contribute to the documentation
> - Get in touch with ideas for training, coding clubs, hackathons
> dataviz.shef.ac.uk
> - #### a.krystalli[at]sheffield.ac.uk