-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5.4-Reproducible_visualization.qmd
executable file
·58 lines (43 loc) · 1.38 KB
/
5.4-Reproducible_visualization.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
---
title: "Reproducible visualization"
author:
- Elizabeth King
- Kevin Middleton
format:
revealjs:
theme: [default, custom.scss]
standalone: true
self-contained: true
logo: QMLS_Logo.png
slide-number: true
show-slide-number: all
link-external-newwindow: true
---
## Reproducible visualization
```{r}
#| label: setup
#| echo: false
#| warning: false
#| message: false
library(tidyverse)
library(cowplot)
ggplot2::theme_set(theme_cowplot())
library(patchwork)
```
Just like your data analysis, visualization is reproducible
- Visualization is step 1 and often step *n* of analysis
- Refine exploratory plots for publication
## Git and Github
- [Happy Git and GitHub for the useR](https://happygitwithr.com/)
- [Slides for an intro to Git and Github lecture](https://github.com/egking/comp_bio_MU)
- [Video tutorial](https://youtu.be/rlXnVs1Xods)
## Your reproducible research as an R package
- Change your notion of an R package
- Collection of code that does something
- Functions do the analysis
- `demo()` can run those functions
- [Package setup video tutorial](https://youtu.be/QOvZV2lkL9w)
- [Step-by-step guide](https://docs.google.com/document/d/17opEFHKGkaflOed0iww2FscIFP-_7xPKPKqcelmVAgQ/edit?usp=sharing)
## Repository structure
- Separate directories for raw data, functions, analysis, generated data, figures
- Or make a package (see above)