dufei
dufei

Reputation: 3397

How to make figure bigger than body column width in Quarto

According to the Quarto docs, the figure below should be screen-width but instead it is just positioned at the left-hand side of the screen. How can I make it bigger? Adding #| layout-ncol: 1 doesn't help either.

screenshot of html document

---
title: "Test"
format: html
---

```{r}
#| column: screen
plot(pressure)
```

Upvotes: 6

Views: 6216

Answers (1)

tarleb
tarleb

Reputation: 22659

The generated image is not big enough to fill the full screen. Try the out-width parameter to scale the image (docs). For best results, choose a vector-graphic format to ensure smooth scaling of the image.

```{r}
#| column: screen
#| out-width: 100%
#| fig-format: svg
plot(pressure)
```

Upvotes: 5

Related Questions