### Bug description

I have a very simple `qmd` file (add three backticks to close chunk at end):

````
---
format: pdf
---

```{r}
#| warning: false
#| message: false
library(tidyverse) ##load for plotting

ggplot(data = starwars %>% drop_na()) +
  geom_point(mapping = aes(x = height, y = mass)) +
    annotate("text", x = 150, y = 750, 
             label = "Annotation to show it is not a font issue.")
    labs(caption = "A caption that gets cropped.")
# add three backticks here to close chunk... having trouble getting markdown to work right here
```
````

In the below picture, you can see that the plot displays correctly on the left-hand side, but gets cropped improperly for pdf output (previewed on the right-hand side); the axis labels and ticks are gone.

![image](https://user-images.githubusercontent.com/17184441/195909773-b75a8464-3410-4a75-b966-31c46ad8676c.png)

I am using dev Quarto version 1.2.209 (needed a different bug to be fixed).  I cannot seem to downgrade Quarto to see if bug is in the current release.  Windows 10, RSTUDIO 2022.07.9 Build 548.

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-10-14T17:59:34Z
flyaflya
bug needs-repro
closed
PDF is cropping ggplot figures
https://github.com/quarto-dev/quarto-cli/issues/2861