Re: [R] How to print the graphs in landscape/portrait orientation

2016-04-10 Thread David Winsemius
> On Apr 9, 2016, at 2:58 PM, jpm miao wrote: > > Hi, > > I made a few graphs by ggplot. The following codes produce a pdf file > with graphs in landscape orientation on my Windows PC, while they produce a > pdf file with the same graphs, but in portrait orientation: > >

Re: [R] How to print the graphs in landscape/portrait orientation

2016-04-10 Thread John Kane
There really is nothing there to work with. Please have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and/or http://adv-r.had.co.nz/Reproducibility.html John Kane Kingston ON Canada > -Original Message- > From: miao...@gmail.com >

[R] How to print the graphs in landscape/portrait orientation (revised)

2016-04-09 Thread jpm miao
Hi, I made a few graphs by ggplot. The following codes produce a pdf file with graphs, sometimes in landscape orientation, sometimes in portrait orientation. I am using both Mac and Windows PC. Question: how can I control the orientation of the pdf file? I try to add a line

Re: [R] How to print the graphs in landscape/portrait orientation

2016-04-09 Thread Duncan Murdoch
On 09/04/2016 5:58 PM, jpm miao wrote: Hi, I made a few graphs by ggplot. The following codes produce a pdf file with graphs in landscape orientation on my Windows PC, while they produce a pdf file with the same graphs, but in portrait orientation: *p2 <- lapply(1:(2*n), function(.x)

[R] How to print the graphs in landscape/portrait orientation

2016-04-09 Thread jpm miao
Hi, I made a few graphs by ggplot. The following codes produce a pdf file with graphs in landscape orientation on my Windows PC, while they produce a pdf file with the same graphs, but in portrait orientation: *p2 <- lapply(1:(2*n), function(.x) xyz_outl[.x][[1]]) #a sequence of graphs made