---
format: html
---

```{r}
library(ggplot2)
library(grid)
```

```{r}
#| warning: false
grid::grid.newpage()
p <- ggplot(mtcars, aes(x = disp,y = mpg)) + geom_point()
print(p, vp=grid::viewport(angle=-90))
```

```{r}
#| echo: fenced
#| out-extra: "style='transform: rotate(90deg); margin-top: 75px;'"
p
```

```{r}
#| echo: fenced
#| out-extra: 'angle=90'
p
```


```{r}
ggsave("norm-plot.png", p)
```


