forked from ThomasCarroll/Plotting_In_R
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
165 lines (119 loc) · 7.18 KB
/
index.html
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>Plotting in R by BRC</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
</head>
<body>
<section class="page-header">
<h1 class="project-name">Plotting in R</h1>
<h2 class="project-tagline">Rockefeller University, BRC Course</h2>
<a href="https://github.com/rockefelleruniversity/Plotting_In_R/zipball/master" class="btn">Download.zip</a>
<a href="https://github.com/rockefelleruniversity/Plotting_In_R/tarball/master" class="btn">Download.tar.gz</a>
<a href="https://github.com/RockefellerUniversity/Plotting_In_R/issues" class="btn">Getting help !</a>
</section>
<section class="main-content">
<h1>
<a id="Plotting_In_R" class="anchor" href="#Plotting_In_R" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Plotting in R</h1>
<p><a href="https://gitter.im/RockefellerUniversity/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/RockefellerUniversity/Lobby"></a>
<a href="https://travis-ci.org/RockefellerUniversity/Plotting_In_R"><img src="https://travis-ci.org/RockefellerUniversity/Plotting_In_R.svg?branch=master" alt="https://travis-ci.org/RockefellerUniversity/Plotting_In_R.svg?branch=master"></a>
</p>
<h2>
<a id="the-course" class="anchor" href="#the-course" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>The Course</h2>
<p>This course introduces plotting in R.</p>
<p>The course consists of 2 sections, 1 on base R plotting and a second on plotting using ggplot2.<br>
Each section is presented as HTMl presentations or single page document. Exercises and answer sheets are included after all subsections to practice techniques and provide future reference examples. </p>
<p>Course material and exercises are available to view as rendered HTML at <a href="https://rockefelleruniversity.github.io/Plotting_In_R/">https://rockefelleruniversity.github.io/Plotting_In_R/</a>.<br>
All material is available to download under GPL v2 license.</p>
<h2>
<a id="setting-up" class="anchor" href="#setting-up" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Setting up.</h2>
<h4>
<a id="install-r" class="anchor" href="#install-r" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Install R.</h4>
<p>R can be installed from the R-project website.<br>
R 4.0 or higher is required for this course.</p>
<p><a href="http://www.r-project.org/">http://www.r-project.org/</a></p>
<h4>
<a id="install-rstudio" class="anchor" href="#install-rstudio" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Install RStudio.</h4>
<p>RStudio can be installed from the R-project website. </p>
<p><a href="http://www.rstudio.com/">http://www.rstudio.com/</a></p>
<h4>
<a id="install-required-packages" class="anchor" href="#install-required-packages" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Install required packages.</h4>
<h5><b>Option 1 - For your own personal computers</b></h5>
<p>Having downloaded R and RStudio, some additional packages are required (rmarkdown and ggplot2).<br>
To install these,</p>
<ul>
<li>First launch RStudio</li>
<li>Install the packages in the R console using devtools
<pre>
install.packages("devtools",dependencies=TRUE)
devtools::install_github("rockefelleruniversity/Plotting_In_R",subdir="PlottingInR",build_vignettes=TRUE)
</pre>
</li>
</ul>
<h5><b>Option 2 - For anywhere</b></h5>
<p>Having downloaded R and RStudio, some additional packages are required (rmarkdown and ggplot2).<br>
To install these,</p>
<ul>
<li>First launch RStudio</li>
<li>Install the packages in the R console using install.packages
<pre>
install.packages("ggplot2",dependencies=TRUE)
install.packages("lattice",dependencies=TRUE)
install.packages("rmarkdown",dependencies=TRUE)
install.packages("yaml",dependencies=TRUE)
</pre>
</li>
</ul>
<h4>
<a id="download-the-material" class="anchor" href="#download-the-material" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Download the material</h4>
<p>The material can either be downloaded as a <a href="https://github.com/rockefelleruniversity/Plotting_In_R/archive/master.zip">zip</a></p>
<pre>
wget https://github.com/rockefelleruniversity/Plotting_In_R/archive/master.zip ./
</pre>
<h2>
<a id="the-r-sessions" class="anchor" href="#the-r-sessions" aria-hidden="true"><span class="octicon octicon-link"></span></a>The R Sessions</h2>
<h4>
<a id="Session1" class="anchor" href="#session1" aria-hidden="true"><span class="octicon octicon-link"></span></a>Plotting in R base</h4>
<p>This section focuses on plotting using R base graphics.<br>
Session sections:
<ul>
<li>Introduction to R plotting</li>
<li>Plot Types</li>
<li>Saving plots</li>
</ul>
</p>
Link to HTML presentation - <a href="./r_course/presentations/slides/basePlotting.html">Session 1</a><br>
Link to single page, printable HTML - <a href="./r_course/presentations/singlepage/basePlotting.html">Session 1</a><br>
Link to R code included in presentation - <a href="./r_course/presentations/r_code/basePlotting.R">Session 1</a><br>
<iframe src="./r_course/presentations/slides/basePlotting.html" width="100%" height="400"></iframe>
</span>
<h4>
<a id="Session2" class="anchor" href="#session2" aria-hidden="true"><span class="octicon octicon-link"></span></a>Introduction to ggplot2</h4>
<p>In this session we introduce plotting using ggplot2<br>
Session sections:
<ul>
<li>Introduction to Grammar of Graphics</li>
<li>Plotting using ggplot2</li>
<li>Custom themes and styles in ggplot2</li>
</ul>
</p>
Link to HTML presentation - <a href="./r_course/presentations/slides/ggplot2.html">Session 2</a><br>
Link to single page, printable HTML - <a href="./r_course/presentations/singlepage/ggplot2.html">Session 2</a><br>
Link to R code included in presentation - <a href="./r_course/presentations/r_code/ggplot2.R">Session 2</a><br>
<iframe src="./r_course/presentations/slides/ggplot2.html" width="100%" height="400"></iframe>
</span>
<p>
</p>
</span>
<footer class="site-footer">
<span class="site-footer-owner"><a href="https://github.com/rockefelleruniversity/Plotting_In_R">Plotting_In_R</a> is maintained by <a href="https://github.com/rockefelleruniversity">rockefelleruniversity</a>.</span>
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
</footer>
</section>
</body>
</html>