You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -99,15 +99,32 @@ underlying R code or data changes)."
99
99
We use R Markdown (.rmd) files to document workflows and to share data processing,
100
100
analysis and visualization code & outputs.
101
101
102
-
## RMD is beneficial to your colleagues
102
+
## Why R Markdown?
103
+
There are many advantages to using R Markdown in your work:
104
+
105
+
***Human readable:** it's much easier to read a web page or a report containing text and figures.
106
+
***Simple syntax:** markdown and `rmd` can be learned quickly.
107
+
***A Reminder for Your Future Self** All components of your work are clearly documented. You don't have to rememberwhat steps, assumptions, tests were used.
108
+
***Easy to Modify:** You can easily extend or refine analyses by modifying existing or adding new
109
+
code blocks.
110
+
***Flexible export formats:** Analysis results can be disseminated in various formats including HTML, PDF,
111
+
slide shows and more.
112
+
***Easy to share:** Code and data can be shared with a colleague to replicate the workflow.
113
+
114
+
<iclass="fa fa-star"></i> **Data Tip:**
115
+
<ahref="https://rpubs.com/"target= "_blank ">RPubs</a> is a one way to
116
+
share and publish code online.
117
+
{: .notice}
118
+
119
+
### RMD is beneficial to your colleagues
103
120
The link between data, code and results make `.rmd` powerful. You can share your
104
121
entire workflow with your colleagues and they can quickly see your process. You
105
122
can also write reports using `.rmd` files which contain code and data
106
123
analysis results. To enrich the document, you can add text, just like you would
107
124
in a word document that describes your workflow, discusses your results and
108
125
presents your conclusions - along side your analysis results.
109
126
110
-
## RMD is beneficial to you & your future self
127
+
###RMD is beneficial to you & your future self
111
128
112
129
R Markdown as a format is an efficient tool. If you need to make changes to your
113
130
workflow, you can simply modify the report and re-render (or knit) the report.
@@ -120,28 +137,11 @@ this one - were created using R Markdown!
120
137
{: .notice}
121
138
122
139
123
-
### Why R Markdown?
124
-
There are many advantages to using R Markdown in your work:
125
-
126
-
***Human readable:** it's much easier to read a web page or a report containing text and figures.
127
-
***Simple syntax:** markdown and `rmd` can be learned quickly.
128
-
***A Reminder for Your Future Self** All components of your work are clearly documented. You don't have to rememberwhat steps, assumptions, tests were used.
129
-
***Easy to Modify:** You can easily extend or refine analyses by modifying existing or adding new
130
-
code blocks.
131
-
***Flexible export formats:** Analysis results can be disseminated in various formats including HTML, PDF,
132
-
slide shows and more.
133
-
***Easy to share:** Code and data can be shared with a colleague to replicate the workflow.
134
-
135
-
<iclass="fa fa-star"></i> **Data Tip:**
136
-
<ahref="https://rpubs.com/"target= "_blank ">RPubs</a> is a one way to
137
-
share and publish code online.
138
-
{: .notice}
139
-
140
140
## Use Knitr to convert .rmd to .pdf
141
141
142
142
We use the `R``knitr` package to render our markdown and create easy to read
143
143
documents from `.rmd` files. We will cover how to use `knitr` later in this
module-description: 'This tutorial covers how to use markdown to add an images to a report. It also discusses good file management practices associated with saving images within your project directory to avoid losing them if you have to go back and work on the report in the future.'
13
+
module-nav-title: 'Refining R Markdown Reports'
14
14
module-type: 'homework'
15
15
week: 3
16
16
sidebar:
@@ -29,52 +29,60 @@ order: 1
29
29
30
30
After completing this tutorial, you will be able to:
31
31
32
-
*
32
+
* add an image to an R markdown report.
33
+
* describe the ideal location to store an image associated with an r markdown report so that knitr can find it when it renders a file.
33
34
34
35
## <iclass="fa fa-check-square-o fa-2"aria-hidden="true"></i> What you need
35
36
36
-
You will need a computer with internet access to complete this lesson.
37
-
38
-
</div>
37
+
You need `R` and `RStudio`to complete this tutorial. Also you should have
38
+
an `earth-analytics` directory setup on your computer with a `/data`
39
+
directory with it.
39
40
41
+
*[How to Setup R / RStudio](/course-materials/earth-analytics/week-1/setup-r-rstudio/)
42
+
*[Setup your working directory](/course-materials/earth-analytics/week-1/setup-working-directory/)
0 commit comments