-
Notifications
You must be signed in to change notification settings - Fork 0
/
general_rmarkdown.Rmd
100 lines (60 loc) · 2.34 KB
/
general_rmarkdown.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
---
title: "Intro to R Markdown"
author: "Ranae Dietzel"
date: "October 19, 2018"
ratio: 16x10
output:
rmdshower::shower_presentation:
self_contained: false
katex: true
theme: ribbon
---
##R Markdown
<center><img src="images/welcome.jpg" width="800px"/></center>
##ranae.github.io/general_rmarkdown
## Why R Markdown?
* Need structured words to communicate your analyses and figures
* Formatting is the worst
* R Markdown helps you easily combine words, code, and figures
* **Helps with reproducibility BIG TIME**
<center><img src="images/eyes.gif" width="400px"/></center>
## What can R Markdown make?
* Everything
<center><img src="images/everything.gif" width="400px"/></center>
## Presentations
* Like this one
<center><img src="images/highfive.gif" width="400px"/></center>
## Reports
* HTML
* PDF
* even Word
<center><img src="images/report.gif" width="400px"/></center>
## Journal Articles
* Mostly for Statistics journals
* Any Ecology journals?
## Websites
* [Static page](http://ranae.github.io/teaching_hour_blog)
* [Whole site](https://amber.rbind.io/)
## Books
* [Bookdown](http://r4ds.had.co.nz/)
## What if I like formatting/am a perfectionist?
* Free to make adjustments with LaTex, HTML, or CSS right in your document
* Also free to make entire templates or themes
<center><img src="images/perfectionist.gif" width="300px"/></center>
My favorite part about R Markdown is that I have no idea how it works.
## There is a [very thorough book](https://bookdown.org/yihui/rmarkdown/) on R Markdown by Yihui Xie, J.J. Allaire, and Garrett Grolemund
<center><img src="images/cover.png" width="300px"/></center>
##
[Yihui Xie](https://yihui.name/) is behind of most of what you can do with R Markdown
<center><img src="images/yihui.png" width="100px"/></center>
He is an ISU Alum and I hear he is awesome.
## Notebooks
* Notebooks are a low pressure way to get started with R Markdown.
* Keep everything in one place and be ready to share it.
* Works well with version control.
Let's make a Notebook.
## Here is some code you can copy and paste without going into GitHub
```{r message=FALSE, warning=FALSE}
library(RCurl)
agdata <-read.csv("https://raw.githubusercontent.com/Ranae/AGRON_R4DS/master/week_02/tristate_yield_weather.csv")
```