You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: quarto-eth-phd-thesis.qmd
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ quarto-eth-phd-thesis/
135
135
136
136
I use the `.Rprofile` to load R packages rather than specifying packages within individual `.qmd` files or `.R` scripts as the .Rprofile is called prior to rendering each file. Add any additional packages you require here.
@@ -149,7 +149,7 @@ Also in the `.Rprofile` are some functions to streamline uniform styling of figu
149
149
150
150
For tables the `thesis_tbl()` function sets options for `knitr::kbl()` and `kableExtra::kable_styling()` to produce booktabs style tables, with center aligned content and bold column titles:
An example of applying this function is included in `chapters/paper-01-qmd`:
173
173
174
-
```{r, eval=FALSE}
174
+
```
175
175
#| tbl-pos: H
176
176
177
177
#load csv of allocation parameter summary statistics
@@ -188,7 +188,7 @@ Calibration_summary %>%
188
188
189
189
For figures the function `theme_publication()` sets a custom `ggplot2` theme:
190
190
191
-
```{r, eval=FALSE}
191
+
```
192
192
#' theme_publication
193
193
#'
194
194
#' custom ggplot2 theme to apply to all plots
@@ -235,7 +235,7 @@ theme_thesis <- function(
235
235
236
236
In addition the `.Rprofile` contains a series of functions for producing custom continuous and discrete color palettes with the base set of colors specified within the function `thesis_color()`:
These color palettes can be applied using defined `ggplot2::scale_color_*` and `ggplot2::scale_fill_*` methods. An example of applying the `theme_thesis()` and `scale_color_thesis()` functions is provided in `chapters/paper-01/paper-01-figs.R:`
272
272
273
-
```{r, eval=FALSE}
273
+
```
274
274
p <- ggplot(mtcars, aes(x = wt, y = mpg, color = factor(cyl))) +
275
275
geom_point(size = 3) +
276
276
labs(
@@ -393,7 +393,7 @@ The code for this is included in `chapters/paper-01/paper-01.qmd` and it uses th
393
393
394
394
My preferred method of preparing figures for Quarto documents is to produce and save them via dedicated R scripts rather than directly within the `.qmd` files themselves. This R script is then sourced directly at the head of the respective `.qmd` file to ensure the most up to date figures are used and the images are then included for each figure as in `paper-01.qmd`:
0 commit comments