forked from inSilecoInc/git_rmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.Rmd
64 lines (48 loc) · 2.03 KB
/
index.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
---
title: A Reproducible Workflow exercise
author: Environment and Climate Change Canada, inSileco
date: 2021-03-01
output:
html_document:
toc: true
pdf_document:
toc: true
word_document:
toc: true
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
echo = FALSE,
fig.align = "center"
)
library(palmerpenguins)
data(penguins)
# The following objects are used as inline code within the text
n_individuals <- nrow(penguins)
n_species <- length(unique(penguins$species))
n_islands <- length(unique(penguins$island))
mean_flipper_length <- round(mean(penguins$flipper_length_mm, na.rm = TRUE),2)
```
# Section 1 title
## Subsection 1 title
*Lorem* **ipsum** ***dolor*** ~~sit~~ amet, consectetur adipiscing elit. Nulla eget ipsum a nulla maximus ornare. Nunc ut nibh orci. Phasellus lacinia velit sed tincidunt euismod. Morbi euismod, lectus et consectetur tristique, urna eros facilisis magna, faucibus condimentum leo dui a enim. Praesent massa velit, egestas et eros eget, ornare tincidunt nisl. Vestibulum mattis enim a enim mattis iaculis. Etiam ipsum tortor, vehicula pretium consequat at, pharetra non mauris. Nam ac facilisis libero. Donec ut arcu gravida, pellentesque eros in, tempor mi.
Numbered list of numbers
1. one
2. two
3. three
> A man who dares to waste one hour of time has not discovered the value of life.

Artistic drawing of palmer penguins.[^art]
```{r, echo = FALSE}
knitr::kable(penguins[1:20,])
```
[^art]: Artwork by \@allison_horst
## Subsection 2 title
The [penguins dataset](https://github.com/allisonhorst/palmerpenguins) contains data on `r n_individuals` individuals, `r n_species` species, and from `r n_islands` islands. Across individuals, the mean flipper length is `r mean_flipper_length` $mm$.
```{r, echo = FALSE}
plot(x = penguins$flipper_length_mm, y = penguins$body_mass_g, pch = 20, col = '#32c4c4',
main = 'Penguin body mass as a function of flipper length',
xlab = 'Flipper length (mm)', ylab = 'Body mass (g)')
```
```{r, child = "section2.Rmd"}
```