R: fig.width is ignored when using ggcorrplot within Quarto for generating an HTML document.
Any ideas why?
---
format: html
page-layout: full
embed-resources: true
code-fold: true
execute:
warning: false
message: false
---
```{r, fig.width = 20}
# fig.width working
ggplot(airquality, aes(Temp, Ozone)) +
geom_point() +
geom_smooth(method = "loess", se = FALSE)
# fig.width not working
airquality %>%
cor(use = "pair") %>%
ggcorrplot()
```
It looks like
ggcorrplothas a fixed height/width ratio, so you could specify thefig-heightper below (orfig-asp):Side-by-side is also an option for a smaller
ggcorrplot: