Bert Gunter
2023-Nov-15 17:02 UTC
[R] Can someone please have a look at this query on stackoverflow?
Well, as no one else has offered an answer ... I haven't looked at this closely, but could it not simply be the case that the aspect ratio set by "Landscape Mode" just differs from that of your display device? -- i.e., it is impossible to have the figure displayed in landscape ratio *and* simultaneously fill your display device? If this is obviously wrong, feel free to ignore without replying. Cheers, Bert On Tue, Nov 14, 2023 at 8:48?PM Ashim Kapoor <ashimkapoor at gmail.com> wrote:> Dear John, > > Many thanks for your reply. > > I wish 2 things : > 1. Landscape mode > 2. No wasted space on the sides when I maximise the pdf. > > When I download an open and maximise the pdf it wastes space. Please > see the attached screenshot. > > Query: When you maximise the PDF does it occupy the full screen ? > > Best, > Ashim > > On Tue, Nov 14, 2023 at 5:14?PM John Kane <jrkrideau at gmail.com> wrote: > > > > 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 <ashimkapoor at gmail.com> > 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 > >> > >> ______________________________________________ > >> R-help at r-project.org 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 > ______________________________________________ > R-help at r-project.org 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. >[[alternative HTML version deleted]]
Bert Gunter
2023-Nov-15 17:06 UTC
[R] Can someone please have a look at this query on stackoverflow?
... and note also that there may be clipping options you can change/set to approximate your desiderata. -- Bert On Wed, Nov 15, 2023 at 9:02?AM Bert Gunter <bgunter.4567 at gmail.com> wrote:> Well, as no one else has offered an answer ... > > I haven't looked at this closely, but could it not simply be the case that > the aspect ratio set by "Landscape Mode" just differs from that of your > display device? -- i.e., it is impossible to have the figure displayed in > landscape ratio *and* simultaneously fill your display device? > > If this is obviously wrong, feel free to ignore without replying. > > Cheers, > Bert > > On Tue, Nov 14, 2023 at 8:48?PM Ashim Kapoor <ashimkapoor at gmail.com> > wrote: > >> Dear John, >> >> Many thanks for your reply. >> >> I wish 2 things : >> 1. Landscape mode >> 2. No wasted space on the sides when I maximise the pdf. >> >> When I download an open and maximise the pdf it wastes space. Please >> see the attached screenshot. >> >> Query: When you maximise the PDF does it occupy the full screen ? >> >> Best, >> Ashim >> >> On Tue, Nov 14, 2023 at 5:14?PM John Kane <jrkrideau at gmail.com> wrote: >> > >> > 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 <ashimkapoor at gmail.com> >> 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 >> >> >> >> ______________________________________________ >> >> R-help at r-project.org 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 >> ______________________________________________ >> R-help at r-project.org 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. >> >[[alternative HTML version deleted]]
Ashim Kapoor
2023-Nov-16 08:12 UTC
[R] Can someone please have a look at this query on stackoverflow?
Dear Bert, Following your suggestion: I checked my device resolution is : 1366 x 768 = 16:9 which is the same as is specified in the Rmd file. I am out of ideas now. Any other idea? Best Regards, Ashim On Wed, Nov 15, 2023 at 10:32?PM Bert Gunter <bgunter.4567 at gmail.com> wrote:> > Well, as no one else has offered an answer ... > > I haven't looked at this closely, but could it not simply be the case that the aspect ratio set by "Landscape Mode" just differs from that of your display device? -- i.e., it is impossible to have the figure displayed in landscape ratio *and* simultaneously fill your display device? > > If this is obviously wrong, feel free to ignore without replying. > > Cheers, > Bert > > On Tue, Nov 14, 2023 at 8:48?PM Ashim Kapoor <ashimkapoor at gmail.com> wrote: >> >> Dear John, >> >> Many thanks for your reply. >> >> I wish 2 things : >> 1. Landscape mode >> 2. No wasted space on the sides when I maximise the pdf. >> >> When I download an open and maximise the pdf it wastes space. Please >> see the attached screenshot. >> >> Query: When you maximise the PDF does it occupy the full screen ? >> >> Best, >> Ashim >> >> On Tue, Nov 14, 2023 at 5:14?PM John Kane <jrkrideau at gmail.com> wrote: >> > >> > 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 <ashimkapoor at gmail.com> 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 >> >> >> >> ______________________________________________ >> >> R-help at r-project.org 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 >> ______________________________________________ >> R-help at r-project.org 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.