[R] Help! I couldn't put multiple qplot on the same page...

Yihui Xie xie at yihui.name
Thu Dec 8 03:51:39 CET 2011


The two plots are in two PDF files, and I said I cheated via LaTeX,
i.e. nothing but putting two \includegraphics{} commands in the same
paragraph.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Wed, Dec 7, 2011 at 5:23 PM, Michael <comtech.usa at gmail.com> wrote:
> Very surprisingly in the generated multi-plot-on-the-same-page, the
> titles of the sub-plots are different... but their contents are the
> same(ie. the plotted curves are the same)...
>
> How could this happen?
>
> Any thoughts?
>
> On 12/7/11, Yihui Xie <xie at yihui.name> wrote:
>> This is another frequently asked question about ggplot2, but I don't
>> know. What I can tell you is, if you use Sweave, you probably can
>> consider the knitr package, which enables you to put any plots on one
>> "page" (yes, I'm cheating via LaTeX); see Figure 1 in the manual:
>> https://github.com/downloads/yihui/knitr/knitr-manual.pdf
>>
>> Regards,
>> Yihui
>> --
>> Yihui Xie <xieyihui at gmail.com>
>> Phone: 515-294-2465 Web: http://yihui.name
>> Department of Statistics, Iowa State University
>> 2215 Snedecor Hall, Ames, IA
>>



More information about the R-help mailing list