[R] How to generate pdf in more than 1 papes

Yihui Xie xieyihui at gmail.com
Tue May 12 07:31:10 CEST 2009


pdf() WILL draw all graphs in a single pdf file by default (onefile = TRUE)

# you didn't tell us your R version
> R.version
               _
platform       i386-pc-mingw32
arch           i386
os             mingw32
system         i386, mingw32
status
major          2
minor          9.0
year           2009
month          04
day            17
svn rev        48333
language       R
version.string R version 2.9.0 (2009-04-17)
> pdf()
> for(i in 1:10)plot(rnorm(10))
> dev.off()
null device
          1
# see Rplots.pdf under getwd()
# 10 pages in one file instead of single pages in 10 files

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872, China



On Tue, May 12, 2009 at 1:14 PM, Xiaogang Yang <gavinxyang at gmail.com> wrote:
> I have a problem,
> everytime I plot in pdf, I could only draw in one page,
> does anyone know how to generate more than one page
>  for example, I have 10 pics to plot in pdf, each page only could be plotted
> 5 pics,
>  so how can I generate just one pdf of 2 pages, instead of two pdf
>
>
> Thank you
> --
> Xiaogang Yang
> Sensorweb Research Laboratory
> http://sensorweb.vancouver.wsu.edu/
> Washington State University Vancouver
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.
>




More information about the R-help mailing list