-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.Rmd
137 lines (95 loc) · 2.49 KB
/
index.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
---
title : Learn R
subtitle :
author : Nehil Jain
job :
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
knit : slidify::knit2slides
---
## What we will cover?
1. Github
2. Data Importing
3. Data Cleaning and Munging
4. Data Vizualisation
5. Code Style Guide
6. Resources
---
## Github
1. What is source control?
2. Why Github?
3. Advantages
4. Lets do it ourselves
- create github account
- create a new repository
- Go through [http://rogerdudler.github.io/git-guide/](http://rogerdudler.github.io/git-guide/)
5. [Cheatsheet](http://www.git-tower.com/blog/git-cheat-sheet/)
---
# Lets get github setup
---
## Data Importing
- Data Types in R
- Readr
- Data.Table
- Caveats
- Prevent copying data
---
# Lets do it
---
## Data Analysis
- plyr #later
- dplyr
- Tbl_df
- 5 verbs
+ slice
+ filter
+ select
+ arrange
- desc
+ mutate
+ summarise
- Grouped Operations
---
## Data Analysis
- Merges
- rbind, cbind
- left join, right join, outer join, inner join [Visual Explaination](http://www.udel.edu/evelyn/SQL-Class2/joins.jpg)
- [Dplyr Cheatsheet](https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf)
---
# Lets Do it
---
## Visualisation
- ggplot2
- ggvis
- exploratory
- Grammar of Graphics
+ ggplot #data
+ aes #mapping
+ geom #Visual Geometry
+ scales and coordinates
- [ggplot Cheatsheet](https://www.rstudio.com/wp-content/uploads/2015/05/ggplot2-cheatsheet.pdf)
---
## Visualisation
- resources
- [Best Practices for Visualisation Slidedeck](http://www.slideshare.net/idigdata/data-visualization-best-practices-2013)
- [manhattan and qq plot](http://www.gettinggeneticsdone.com/2014/05/qqman-r-package-for-qq-and-manhattan-plots-for-gwas-results.html)
- [correlation matrix plot](https://cran.r-project.org/web/packages/corrplot/vignettes/corrplot-intro.html)
- [Good overall Tutorial](http://seananderson.ca/ggplot2-FISH554/)
---
# Lets Do it
---
## Code Style
- Creating code vs maintaining code
- Be kind to your future self. Write readable and consistent code
- Hadley Wickam's Style Guide (http://adv-r.had.co.nz/Style.html)
- Naming is complex. Also beware of collisions
----
## Resources
- Datacamp
- Coursera
- R-bloggers
- Rdocumentation.org
- Stackoverflow