Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beginning to transition asciidoc files to rmarkdown files.
- Loading branch information
0 parents
commit 750ce30
Showing
248 changed files
with
10,520 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.Rproj.user | ||
.Rhistory | ||
.RData | ||
.Ruserdata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Introduction {#intro} | ||
|
||
You can label chapter and section titles using `{#label}` after them, e.g., we can reference Chapter \@ref(intro). If you do not manually label them, there will be automatic labels anyway, e.g., Chapter \@ref(methods). | ||
|
||
Figures and tables with captions will be placed in `figure` and `table` environments, respectively. | ||
|
||
```{r nice-fig, fig.cap='Here is a nice figure!', out.width='80%', fig.asp=.75, fig.align='center'} | ||
par(mar = c(4, 4, .1, .1)) | ||
plot(pressure, type = 'b', pch = 19) | ||
``` | ||
|
||
Reference a figure by its code chunk label with the `fig:` prefix, e.g., see Figure \@ref(fig:nice-fig). Similarly, you can reference tables generated from `knitr::kable()`, e.g., see Table \@ref(tab:nice-tab). | ||
|
||
```{r nice-tab, tidy=FALSE} | ||
knitr::kable( | ||
head(iris, 20), caption = 'Here is a nice table!', | ||
booktabs = TRUE | ||
) | ||
``` | ||
|
||
You can write citations, too. For example, we are using the **bookdown** package [@R-bookdown] in this sample book, which was built on top of R Markdown and **knitr** [@xie2015]. |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.