-
Notifications
You must be signed in to change notification settings - Fork 1
/
RCourse.Rpres
150 lines (96 loc) · 3.9 KB
/
RCourse.Rpres
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
Introduction to R
========================================================
author: Rodrigo R Amadeu
date: Sep 11th 2018
autosize: true
AGR5266 - Field Plot Techniques
========================================================
![Rlogo](figures/Rlogo.png)
[Top 10 Programming Languages 2018](https://spectrum.ieee.org/ns/IEEE_TPL_2018/index/2018/1/1/1/1/1/50/1/50/1/50/1/30/1/30/1/30/1/20/1/20/1/5/1/5/1/20/1/100/)
Freely available language and environment for statistical computing and graphics which provides a wide variety of statistical and graphical techniques. It's GNU!
========================================================
![GNU](figures/gnu_linux.png)
**GNU Philosophy**
+ to run the program
+ to study and change the program in source code form
+ to redistribute exact copies
+ to distribute modified versions
R Overview
========================================================
+ Data Science/Statistics
+ Modeling
+ Graphics
+ Programming language
+ Free
+ Open Source
+ Extensible
+ Apps
+ Repeatability!
+ Widely used in Life Sciences
R Theory
========================================================
From Ihaca [Speech](https://www.stat.auckland.ac.nz/~ihaka/downloads/JSM-2010.pdf):
R provides An interactive, extensible, vectorised language with a large run-time environment
which provides a good deal of statistical functionality and good graphics capabilities.
It comes with the the freedom to inspect, modify and redistribute the source code.
Extensive “third-party solutions” are available through the CRAN websites. User support
is available through community mechanisms.
Open R
Interfaces: RStudio
========================================================
[Different interfaces](goo.gl/oqKLnE)
![RStudio](figures/Rstudio.png)
Open RStudio
Practice
========================================================
From here to where?
========================================================
* Report (Rmd) on RStudio
* https://rmarkdown.rstudio.com/gallery.html
From here to where?
========================================================
`pres.Rmd`
More about R? Tutorials
========================================================
* https://www.coursera.org/learn/r-programming
* https://www.datacamp.com/courses/free-introduction-to-r
* http://tryr.codeschool.com/
* http://swirlstats.com/
More about R? Tutorials
========================================================
**Old school**
* [Amazon Books](https://goo.gl/sTmyPe)
* https://cran.r-project.org/doc/contrib/Verzani-SimpleR.pdf
* https://cran.r-project.org/doc/manuals/R-intro.pdf
* [Dr. Peng Books](https://leanpub.com/u/rdpeng) (pay as much as you want and my personal preference)
Debugging Code
========================================================
* http://stackoverflow.com/
* http://rseek.org/
* [Google!](https://www.google.com.br/?gfe_rd=cr&ei=s-gYWKeZGNHV8wfOzZHwCA#q=R+Cran)
Motivational - From here to where?
========================================================
* Graphics
[Basic + ggplot2](http://www.r-graph-gallery.com/)
[Course](https://rramadeu.github.io/2016/07/07/Graphics-Course/)
[RCircos](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3765848/)
From here to where?
========================================================
* Apps
* https://plot.ly/r/3d-surface-plots/
* http://shinyapps.stat.ubc.ca/r-graph-catalog/
* http://rosetta.ahmedmoustafa.io/drift/
Advanced R
========================================================
* Dates? _lubridate_
* http://vita.had.co.nz/papers/tidy-data.pdf
* http://tidyverse.org/
* https://www.rstudio.com/resources/webinars/working-with-big-data-in-r/
* https://www.coursera.org/learn/advanced-r
Packages
========================================================
* 1x routine -> ok, just comment it
* 2x routine -> wrap it in a function
* 2+ routine -> wrap them in a package
* https://support.rstudio.com/hc/en-us/articles/200486488-Developing-Packages-with-RStudio
* http://kbroman.org/pkg_primer/