Communication restructuring
This commit is contained in:
@@ -7,7 +7,10 @@ output: html_document
|
||||
library(viridis)
|
||||
```
|
||||
|
||||
The code below demonstrates two color palettes in the [viridis](https://github.com/sjmgarnier/viridis) package. Each plot displays a contour map of the Maunga Whau volcano in Auckland, New Zealand.
|
||||
The code below demonstrates two color palettes in the
|
||||
[viridis](https://github.com/sjmgarnier/viridis) package.
|
||||
Each plot displays a contour map of the Maunga Whau volcano
|
||||
in Auckland, New Zealand.
|
||||
|
||||
## Viridis colors
|
||||
|
||||
|
||||
@@ -1,18 +1,12 @@
|
||||
---
|
||||
title: "Tables"
|
||||
output: html_document
|
||||
---
|
||||
|
||||
By default, R Markdown displays data frame and matrix output as it would appear at the command line:
|
||||
|
||||
```{r echo = FALSE}
|
||||
mtcars[1:5, ]
|
||||
```
|
||||
|
||||
|
||||
Format the output as a table with knitr's `kable` function:
|
||||
|
||||
```{r echo = FALSE, results = 'asis'}
|
||||
```{r echo = FALSE}
|
||||
library(knitr)
|
||||
kable(mtcars[1:5, ], caption = "A knitr kable.")
|
||||
```
|
||||
|
||||
90
rmarkdown-demos/markdown.Rmd
Normal file
90
rmarkdown-demos/markdown.Rmd
Normal file
@@ -0,0 +1,90 @@
|
||||
Text formatting
|
||||
------------------------------------------------------------
|
||||
|
||||
*italic* _italic_
|
||||
|
||||
**bold** __bold__
|
||||
|
||||
`code`
|
||||
|
||||
superscript^2^
|
||||
|
||||
subscript~2~
|
||||
|
||||
Headings
|
||||
------------------------------------------------------------
|
||||
|
||||
# 1st Level Header
|
||||
|
||||
## 2nd Level Header
|
||||
|
||||
### 3rd Level Header
|
||||
|
||||
#### 4th Level Header
|
||||
|
||||
Lists
|
||||
------------------------------------------------------------
|
||||
|
||||
* Bulleted list item 1
|
||||
|
||||
* Item 2
|
||||
|
||||
* Item 2a
|
||||
|
||||
* Item 2b
|
||||
|
||||
1. Numbered list item 1
|
||||
|
||||
2. Item 2
|
||||
|
||||
3. Item 3
|
||||
+ Item 3a
|
||||
+ Item 3b
|
||||
|
||||
Links
|
||||
------------------------------------------------------------
|
||||
|
||||
<http://example.com>
|
||||
|
||||
[linked phrase](http://example.com)
|
||||
|
||||
Images
|
||||
------------------------------------------------------------
|
||||
|
||||
|
||||
```markdown
|
||||

|
||||
|
||||

|
||||
```
|
||||
|
||||
Footnotes
|
||||
------------------------------------------------------------
|
||||
|
||||
A [linked phrase][id].
|
||||
|
||||
Then below:
|
||||
|
||||
[id]: text of the note
|
||||
|
||||
Block quotes
|
||||
------------------------------------------------------------
|
||||
|
||||
As George Box said:
|
||||
|
||||
> All models are wrong
|
||||
> but some are useful.
|
||||
|
||||
Tables ---------------------------------------------------
|
||||
|
||||
First Header | Second Header
|
||||
------------- | -------------
|
||||
Content Cell | Content Cell
|
||||
Content Cell | Content Cell
|
||||
Reference Style Links and Images
|
||||
|
||||
Equations -----------------------------------------------
|
||||
|
||||
$E = mc^{2}$
|
||||
|
||||
$$E = mc^{2}$$
|
||||
Reference in New Issue
Block a user