Skip to content

Instantly share code, notes, and snippets.

@njtierney
Created June 28, 2024 06:22
Show Gist options
  • Save njtierney/ceadd6d7234ee1d20a85ed30ed6987cb to your computer and use it in GitHub Desktop.
Save njtierney/ceadd6d7234ee1d20a85ed30ed6987cb to your computer and use it in GitHub Desktop.
---
title: example multi figures
format: html
---
We can also see that there is an interesting relationship between Ozone and temperature.
```{r}
#| label: fig-aq
#| fig-cap:
#| - This is the first figure
#| - This is the second figure
#| fig-width: 4
#| fig-height: 4
#| fig-cap-location: margin
ggplot(airquality,
aes(x = Ozone,
y = Temp)) +
geom_point()
ggplot(airquality,
aes(x = Ozone,
y = Solar.R)) +
geom_point()
```
As we can see in @fig-aq
Or...
@fig-aq-1
@fig-aq-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment