Skip to content

Commit

Permalink
Chapman and Hall style applied
Browse files Browse the repository at this point in the history
  • Loading branch information
riinuots committed Jul 9, 2019
1 parent 2993923 commit d7273cc
Show file tree
Hide file tree
Showing 15 changed files with 3,534 additions and 2,212 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ docs/*
!docs/healthyr-book.pdf
rsconnect
healthyr-book.rds
my_saved_plot.png
render*.rds
1 change: 1 addition & 0 deletions 01_first_interaction.Rmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
\mainmatter
# (PART) Always plot your data first {-}
# Your first R plots

Expand Down
4 changes: 2 additions & 2 deletions 03_summarising.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mydata %>%
Most of the functions introduced in this session come from the tidyverse family (http://tidyverse.org/), rather than Base R. Including `library(tidyverse)` in your script loads a list of packages: ggplot2, dplyr, tidry, forcats, etc.


```{r, out.width = "400px", echo = FALSE}
```{r, echo = FALSE}
knitr::include_graphics("images/library_vs_package.png")
```

Expand Down Expand Up @@ -197,7 +197,7 @@ mydata %>%
## Wide vs long: `spread()` and `gather()`


```{r, out.width = "700px", echo = FALSE}
```{r, echo = FALSE}
knitr::include_graphics("images/wide_long.png")
```

Expand Down
7 changes: 6 additions & 1 deletion _bookdown.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
book_filename: "healthyr-book"
clean: [packages.bib, bookdown.bbl]
delete_merged_file: true
language:
label:
fig: "FIGURE "
tab: "TABLE "
ui:
edit: "Edit"
chapter_name: "Chapter "
delete_merged_file: true
new_session: yes
output_dir: "docs"
23 changes: 17 additions & 6 deletions _output.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
bookdown::gitbook:
css: style.css
css: css/style.css
split_by: section
config:
toc:
collapse: section
collapse: none
before: |
<li><a href="./">R for healthcare data analysis</a></li>
after: |
Expand All @@ -12,8 +12,19 @@ bookdown::gitbook:
download: ["pdf", "epub"]
bookdown::pdf_book:
includes:
in_header: preamble.tex
latex_engine: pdflatex
in_header: latex/preamble.tex
before_body: latex/before_body.tex
after_body: latex/after_body.tex
keep_tex: true
dev: "cairo_pdf"
latex_engine: xelatex
citation_package: natbib
keep_tex: yes
bookdown::epub_book: default
template: null
pandoc_args: --top-level-division=chapter
toc_depth: 3
toc_unnumbered: false
toc_appendix: true
quote_footer: ["\\VA{", "}{}"]
highlight_bw: false
bookdown::epub_book:
stylesheet: css/style.css
10 changes: 9 additions & 1 deletion style.css → css/style.css
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ pre {
pre code {
white-space: inherit;
}

p.flushright {
text-align: right;
}
blockquote > p:last-child {
text-align: right;
}
blockquote > p:first-child {
text-align: inherit;
}
.healthyr, .warning, .error {
padding: 1em 1em 1em 8em;
margin-bottom: 10px;
Expand Down
Binary file modified docs/healthyr-book.pdf
Binary file not shown.
Loading

0 comments on commit d7273cc

Please sign in to comment.