-
Notifications
You must be signed in to change notification settings - Fork 0
/
general_rmarkdown.html
205 lines (186 loc) · 7.25 KB
/
general_rmarkdown.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html>
<head>
<title>Intro to R Markdown</title>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="general_rmarkdown_files/shower-ribbon/package/styles/screen-4x3.css">
<link rel="stylesheet" href="general_rmarkdown_files\rmdshower/style-common.css">
<link rel="stylesheet" href="general_rmarkdown_files\rmdshower/style-ribbon.css">
<link rel="stylesheet" href="general_rmarkdown_files/shower-ribbon/style-override.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>
<script src="general_rmarkdown_files\rmdshower/auto-render.min.js" type="text/javascript"></script>
<style type="text/css">
div.sourceCode { overflow-x: auto; }
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
code > span.dt { color: #902000; } /* DataType */
code > span.dv { color: #40a070; } /* DecVal */
code > span.bn { color: #40a070; } /* BaseN */
code > span.fl { color: #40a070; } /* Float */
code > span.ch { color: #4070a0; } /* Char */
code > span.st { color: #4070a0; } /* String */
code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
code > span.ot { color: #007020; } /* Other */
code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
code > span.fu { color: #06287e; } /* Function */
code > span.er { color: #ff0000; font-weight: bold; } /* Error */
code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
code > span.cn { color: #880000; } /* Constant */
code > span.sc { color: #4070a0; } /* SpecialChar */
code > span.vs { color: #4070a0; } /* VerbatimString */
code > span.ss { color: #bb6688; } /* SpecialString */
code > span.im { } /* Import */
code > span.va { color: #19177c; } /* Variable */
code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code > span.op { color: #666666; } /* Operator */
code > span.bu { } /* BuiltIn */
code > span.ex { } /* Extension */
code > span.pp { color: #bc7a00; } /* Preprocessor */
code > span.at { color: #7d9029; } /* Attribute */
code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
</style>
</head>
<body class="shower list">
<header class="caption">
<h1>Intro to R Markdown</h1>
<p>Ranae Dietzel</p>
</header>
<section id="r-markdown" class="slide level2">
<h2>R Markdown</h2>
<center>
<img src="images/welcome.jpg" width="800px"/>
</center>
</section>
<section id="ranae.github.iogeneral_rmarkdown" class="slide level2">
<h2>ranae.github.io/general_rmarkdown</h2>
</section>
<section id="why-r-markdown" class="slide level2">
<h2>Why R Markdown?</h2>
<ul>
<li>Need structured words to communicate your analyses and figures<br />
</li>
<li>Formatting is the worst<br />
</li>
<li>R Markdown helps you easily combine words, code, and figures<br />
</li>
<li><strong>Helps with reproducibility BIG TIME</strong><br />
<center>
<img src="images/eyes.gif" width="400px"/>
</center></li>
</ul>
</section>
<section id="what-can-r-markdown-make" class="slide level2">
<h2>What can R Markdown make?</h2>
<ul>
<li>Everything<br />
<center>
<img src="images/everything.gif" width="400px"/>
</center></li>
</ul>
</section>
<section id="presentations" class="slide level2">
<h2>Presentations</h2>
<ul>
<li>Like this one<br />
<center>
<img src="images/highfive.gif" width="400px"/>
</center></li>
</ul>
</section>
<section id="reports" class="slide level2">
<h2>Reports</h2>
<ul>
<li>HTML<br />
</li>
<li>PDF<br />
</li>
<li>even Word<br />
<center>
<img src="images/report.gif" width="400px"/>
</center></li>
</ul>
</section>
<section id="journal-articles" class="slide level2">
<h2>Journal Articles</h2>
<ul>
<li>Mostly for Statistics journals<br />
</li>
<li>Any Ecology journals?</li>
</ul>
</section>
<section id="websites" class="slide level2">
<h2>Websites</h2>
<ul>
<li><a href="http://ranae.github.io/teaching_hour_blog">Static page</a></li>
<li><a href="https://amber.rbind.io/">Whole site</a></li>
</ul>
</section>
<section id="books" class="slide level2">
<h2>Books</h2>
<ul>
<li><a href="http://r4ds.had.co.nz/">Bookdown</a></li>
</ul>
</section>
<section id="what-if-i-like-formattingam-a-perfectionist" class="slide level2">
<h2>What if I like formatting/am a perfectionist?</h2>
<ul>
<li>Free to make adjustments with LaTex, HTML, or CSS right in your document<br />
</li>
<li>Also free to make entire templates or themes</li>
</ul>
<center>
<img src="images/perfectionist.gif" width="300px"/>
</center>
<p>My favorite part about R Markdown is that I have no idea how it works.</p>
</section>
<section id="there-is-a-very-thorough-book-on-r-markdown-by-yihui-xie-j.j.-allaire-and-garrett-grolemund" class="slide level2">
<h2>There is a <a href="https://bookdown.org/yihui/rmarkdown/">very thorough book</a> on R Markdown by Yihui Xie, J.J. Allaire, and Garrett Grolemund</h2>
<center>
<img src="images/cover.png" width="300px"/>
</center>
</section>
<section id="section" class="slide level2">
<h2></h2>
<p><a href="https://yihui.name/">Yihui Xie</a> is behind of most of what you can do with R Markdown</p>
<center>
<img src="images/yihui.png" width="100px"/>
</center>
<p>He is an ISU Alum and I hear he is awesome.</p>
</section>
<section id="notebooks" class="slide level2">
<h2>Notebooks</h2>
<ul>
<li>Notebooks are a low pressure way to get started with R Markdown.<br />
</li>
<li>Keep everything in one place and be ready to share it.<br />
</li>
<li>Works well with version control.</li>
</ul>
<p>Let’s make a Notebook.</p>
</section>
<section id="here-is-some-code-you-can-copy-and-paste-without-going-into-github" class="slide level2">
<h2>Here is some code you can copy and paste without going into GitHub</h2>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">library</span>(RCurl)
agdata <-<span class="kw">read.csv</span>(<span class="st">"https://raw.githubusercontent.com/Ranae/AGRON_R4DS/master/week_02/tristate_yield_weather.csv"</span>)</code></pre></div>
</section>
<!--
To hide progress bar from entire presentation
just remove “progress” element.
-->
<!-- <div class="progress"></div> -->
<script src="general_rmarkdown_files\rmdshower/node_modules/shower/node_modules/shower-core/shower.min.js"></script>
<!-- Copyright © 2015 Yours Truly, Famous Inc. -->
<!-- Photos by John Carey, fiftyfootshadows.net -->
<script>renderMathInElement(document.body);</script>
</body>
</html>