rstudioconf2020, January 29
bit.ly/njt-rstudio nj_tierney
---
layout: true
<div class="my-footer"><span>bit.ly/njt-rstudio • @nj_tierney</span></div>
---
class: middle, center, inverse
.huge[
How to make better spaghetti 🍝
]
---
class: middle, center, inverse
.huge[
~~How to make better spaghetti 🍝~~
]
.huge[
How to explore longitudinal data effectively
]
---
class: inverse, middle,
# What even **is** longitudinal data?
--
.huge[
> Individuals repeatedly measured through time
]
---
# What even **is** longitudinal data?
.large[
<table>
<thead>
<tr>
<th style="text-align:left;"> country </th>
<th style="text-align:right;"> year </th>
<th style="text-align:right;"> height_cm </th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1910 </td>
<td style="text-align:right;"> 173 </td>
</tr>
</tbody>
</table>
]
---
# What even **is** longitudinal data?
.large[
<table>
<thead>
<tr>
<th style="text-align:left;"> country </th>
<th style="text-align:right;"> year </th>
<th style="text-align:right;"> height_cm </th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1910 </td>
<td style="text-align:right;"> 173 </td>
</tr>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1920 </td>
<td style="text-align:right;"> 173 </td>
</tr>
</tbody>
</table>
]
---
# What even **is** longitudinal data?
.large[
<table>
<thead>
<tr>
<th style="text-align:left;"> country </th>
<th style="text-align:right;"> year </th>
<th style="text-align:right;"> height_cm </th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1910 </td>
<td style="text-align:right;"> 173 </td>
</tr>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1920 </td>
<td style="text-align:right;"> 173 </td>
</tr>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1960 </td>
<td style="text-align:right;"> 176 </td>
</tr>
</tbody>
</table>
]
---
# What even **is** longitudinal data?
.large[
<table>
<thead>
<tr>
<th style="text-align:left;"> country </th>
<th style="text-align:right;"> year </th>
<th style="text-align:right;"> height_cm </th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1910 </td>
<td style="text-align:right;"> 173 </td>
</tr>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1920 </td>
<td style="text-align:right;"> 173 </td>
</tr>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1960 </td>
<td style="text-align:right;"> 176 </td>
</tr>
<tr>
<td style="text-align:left;"> Australia </td>
<td style="text-align:right;"> 1970 </td>
<td style="text-align:right;"> 178 </td>
</tr>
</tbody>
</table>
]
--
.large[
🎉 Individuals repeatedly measured through time
]
---
<img src="gifs/reveal-height-1.gif" width="150%" style="display: block; margin: auto;" />
---
# All of Australia
<img src="figures/gg-all-australia-1.png" width="90%" style="display: block; margin: auto;" />
---
# ...And New Zealand
<img src="figures/gg-show-a-few-countries-1.png" width="90%" style="display: block; margin: auto;" />
---
# And the rest?
<img src="gifs/animate-all-data-1.gif" width="90%" style="display: block; margin: auto;" />
---
class: animated, heartBeat
# And the rest?
<img src="figures/gg-show-all-1.png" width="90%" style="display: block; margin: auto;" />
---
class: bg-black
background-image: url("gifs/noodle-explode.gif")
background-size: contain
background-position: 50% 50%
class: center, bottom, white
---
# Problems:
.large.pull-left[