Communication restructuring

This commit is contained in:
hadley
2016-08-22 09:31:17 -05:00
parent 1e1ef1ee0e
commit 5dfe548dcb
8 changed files with 652 additions and 678 deletions

View File

@@ -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

View File

@@ -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.")
```

View 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
![](http://example.com/logo.png)
![optional caption text](path/to/img.png)
```
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}$$