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
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
.@r-project.org] On
> Behalf Of Michael
> Sent: Wednesday, December 07, 2011 3:30 PM
> To: Tengfei Yin
> Cc: r-help
> Subject: Re: [R] Help! I couldn't put multiple qplot on the same page...
>
> Still the same problem - in the final aggregated plots, all the titles
>
Still the same problem - in the final aggregated plots, all the titles
are diffrent(which is good), but the curve shapes are the same...
How could this happen?
Is this a bug?
On 12/7/11, Tengfei Yin wrote:
> library(gridExtra)
> ?grid.arrange
>
> I found this function convenient to me, it could
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 wrote:
> This is another frequently asked question abou
library(gridExtra)
?grid.arrange
I found this function convenient to me, it could arrange multiple ggplot
object on the same view window
p1 <- qplot(...)
p2 <- qplot(...)
grid.arrange(p1, p2, ..., nrow = 2)
different from your design, but for the same purpose I guess.
cheers
Tengfei
On We
I also did (inside the for loop):
if (nCount==1) p1=tt
if (nCount==2) p2=tt
if (nCount==3) p3=tt
if (nCount==4) p4=tt
if (nCount==5) p5=tt
if (nCount==6) p6=tt
...
and then after the loop:
windows()
my.multiplot(p1, p2, p3, p4, p5, p6, cols=3)
A
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
Thanks a lot!
Now I can see the individual plot, but still not the
originally-desired multi-plot-on-one-page?
Any thoughts? Thanks again!
On 12/7/11, Yihui Xie wrote:
> This is probably one of the most frequently asked questions. The
> answer is to print() the objects. See R FAQ 7.22.
>
> http:
This is probably one of the most frequently asked questions. The
answer is to print() the objects. See R FAQ 7.22.
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-do-lattice_002ftrellis-graphics-not-work_003f
Regards,
Yihui
--
Yihui Xie
Phone: 515-294-2465 Web: http://yihui.name
Department of S
I found that if I run each "qplot" manually it would plot out something...
but if I put it into the loop,
it just doesn't work at all - sometimes it refused to plot anything...
On 12/7/11, Michael wrote:
> If I put a "windows()" in front of the qplot command in the above code
> and simply wante
If I put a "windows()" in front of the qplot command in the above code
and simply wanted to have each plot graphed on different pages...
Six graph windows opened but none of them had any content... they are
all blank...
What's the problem?
Thx
On 12/7/11, Michael wrote:
> Hi all,
>
> I am st
11 matches
Mail list logo