-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathexample1.Rmd
More file actions
64 lines (47 loc) · 993 Bytes
/
example1.Rmd
File metadata and controls
64 lines (47 loc) · 993 Bytes
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: "RMarkdown Example"
author: "Simon Cockell"
date: "22/05/2020"
output: html_document
---
```{r load_packages, warning=FALSE, include=FALSE}
library(viridis)
library(readr)
library(knitr)
```
# Heading 1
This is a paragraph of text. Markdown lets us format the text in **bold**, *italics*, as `code` and [links](https://youtube.com).
* This
* is
* a
* bulleted
* list
Some more text here.
1. This
1. is
1. a
1. numbered
1. list
Final example: some maths $E = mc^{2}$
```{r figure1, include=TRUE}
image(volcano, col=viridis(200))
```
# Figure 2
Here is an alternative colour scheme.
```{r figure2, fig.cap="Figure 2 - Magma colour scheme", fig.height=10, cache=TRUE}
image(volcano, col=viridis(200, option="A"))
```
## Heading level 2
### Heading level 3
Here is a table example.
```{r table1}
dat = read_tsv('../covid-rnaseq/filtered_nhbe_results.txt')
kable(dat)
```
```{bash bash_eg}
ls -l -h .
```
```{python python_eg}
x = "Hello world"
print(x)
```