1

I have question about positioning plots on page in R Markdown. This is little example:

---
title: "Example"
output: pdf_document
---

```{r}
set.seed(1213)
x = cumsum(rnorm(1000))
plot(x, type = 'l')
```

I would like to have this plot on entire page rotated horizontally 90°. It is even possible ?

Thanks in advance!

A.Trzcionkowska
  • 133
  • 1
  • 2
  • 10

1 Answers1

0

Assuming you want the output to be in horizontal mode, use

---
title: "Example"
output: pdf_document
classoption: landscape
---

If you want a mix of landscape and portrait, see here: https://stackoverflow.com/a/27334272/2103175

Community
  • 1
  • 1
ajo
  • 16
  • 2