-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01_ExploreMetadata.qmd
66 lines (49 loc) · 1014 Bytes
/
01_ExploreMetadata.qmd
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
---
title: "Exploratory Data Analysis"
author:
- Jamie Soul
date: today
date-format: short
format:
html:
self-contained: true
theme: litera
toc: true
editor: visual
code-block-bg: true
code-block-border-left: "#31BAE9"
---
## Metadata exploration
### Load the libraries
```{r}
#| output: false
library(tidyverse)
library(skimr)
library(janitor)
library(readxl)
library(GGally)
library(cowplot)
```
### Load and tidy the metadata
```{r}
# Read in the data
metadata <- read_xlsx("data/")
# Tidy the metadata
metadata <- clean_names(metadata)
# Wrangle the metadata as appropriate here
```
### Explore the metadata
```{r}
# TODO make metadatacheckeR package - flag possible common data errors automatically
# Summarise the variables
skim(metadata)
```
#### Pairwise variable comparison
Examine all pairs of variables to spot patterns.
```{r}
#| fig-width: 11
#| fig-height: 9
#| fig-cap: "Pairwise exploration of metadata variables"
ggpairs(metadata) +
cowplot::theme_cowplot()
```