-
Notifications
You must be signed in to change notification settings - Fork 2
/
template.Rmd
46 lines (30 loc) · 1.23 KB
/
template.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
---
title: "My presentation title"
author: "My Name"
date: 'YYYY-MM-DD'
output: github_document
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
This is an R Markdown document formatted for GitHub. When you click the **Knit** button in RStudio, the contents of this document will be 'knitted' into a markdown file (.md), including all the code chunks within the document and their output. Check out the markdown file corresponding to this document, "template.md".
On GitHub, the markdown file will be rendered into an HTML document, formatted according to [GitHub's markdown rules](https://guides.github.com/features/mastering-markdown/).
## This is a header
#### And here's a smaller header
Regular paragraph text can be written directly in the document, like this.
## Including code
You can include R code in the document as follows:
```{r}
head(mtcars)
```
## Including figures
You can embed plots generated from R scripts like this:
```{r}
plot(mpg ~ hp, data = mtcars)
```
Or, embed an external figure like this:
![](https://www.r-project.org/Rlogo.png)
## Including links
Here's a link to an [R Markdown guide](https://rmarkdown.rstudio.com/lesson-2.html) by RStudio.