combine multiple pdf plots into one file

r

Solution

You can use `sweave/knitr` to get more flexibility and merge easily new plots ,old ones and texts:

\documentclass{article}
\usepackage{pdfpages}
\begin{document}
 this my plot 1:    % write some texts here
\includepdf{1.pdf} 
 this my plot 2:
\includepdf{2.pdf} 
 this my plot 3:
\includepdf{3.pdf} 
 this my plot 4:
\includepdf{4.pdf} 
 a new plot:
<<echo=FALSE>>=         % chunk for new plots
x <- rnorm(100)
hist(x)
@
\end{document}

Problem

I am trying to merge multiple pdf plots into one master pdf file. Example: Input: I have three pdf files: "1.pdf", "2.pdf", and "3.pdf" Output: How to combine these three plots into one file called "combine.pdf" I tried using pdf(), and pdftk(), but not successful yet, may be I am missing something simply. Thought to request for help. Greatly appreciate any response.

Original source