ANU BDSI
workshop Reproducible research with Quarto
Biological Data Science Institute
12th April 2024
```{r}
#| label: fig-plot
#| eval: true
#| echo: true
#| fig-width: 4
#| fig-height: 4
#| fig-cap: "A scatter plot of speed and distance."
library(ggplot2)
ggplot(cars, aes(speed, dist)) + geom_point()
```
python
:example-04-code.qmd
`r some_r_code()`
The number of observations in the ChickWeight
dataset is 578.
The value of \pi is 3.1415927.
engine: knitr
..bib
files.citation
function.To cite ggplot2 in publications, please use
H. Wickham. ggplot2: Elegant Graphics for Data Analysis.
Springer-Verlag New York, 2016.
A BibTeX entry for LaTeX users is
@Book{,
author = {Hadley Wickham},
title = {ggplot2: Elegant Graphics for Data Analysis},
publisher = {Springer-Verlag New York},
year = {2016},
isbn = {978-3-319-24277-4},
url = {https://ggplot2.tidyverse.org},
}
(Author et al. 2019)
Author et al. 2019
```{r}
#| label: fig-scatter
#| fig-cap: "The scatter plot of speed and distance."
library(ggplot2)
ggplot(cars, aes(dist, speed)) + geom_point()
```
@fig-scatter
.fig-
.```{r}
#| label: tbl-cars
#| tbl-cap: "The first few rows of the `cars` dataset."
knitr::kable(head(cars), booktabs = TRUE)
```
@tbl-cars
.tbl-
.If you have enabled numbering of sections:
then you can refer to them by their label!
example-05-cross-references.qmd
Download the ref.bib file and place in the same location as the above file.
anu-bdsi.github.io/workshop-intro-quarto/