I ran the code from the answer and it seems to work well. It, definitely, is giving a landscape output.
---
title: "Testing landscape and aspect ratio"
output:
pdf_document:
number_sections: true
classoption:
- landscape
- "aspectratio=169"
header-includes:
- \usepackage{dcolumn}
documentclass: article
geometry: margin=1.5cm---
```{r, out.extra='keepaspectratio=true', out.height='100%', out.width="100%"}
plot(rnorm(100))
```
On Mon, 13 Nov 2023 at 23:33, Ashim Kapoor <[email protected]> wrote:
> Dear all,
>
> I have posted a query which has received a response but that is not
> working on my computer.
>
> Here is the query:
>
>
> https://stackoverflow.com/questions/77387434/pdf-from-rmarkdown-landscape-and-aspectratio-169
>
> Can someone please help me ?
>
> Best Regards,
> Ashim
>
> ______________________________________________
> [email protected] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
John Kane
Kingston ON Canada
landscape.pdf
Description: Adobe PDF document
______________________________________________ [email protected] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

