equivalent of par(mfrow = 1:2) for ggplot

2,759 views
Skip to first unread message

Sergiy Nesterko

unread,
May 18, 2010, 4:04:37 PM5/18/10
to ggplot2
Hi,

Another question from a ggplot beginner. For the life of me I couldn't
find this simple information on the web. I am trying to put two
different plots on the same page. In other words, I am trying to find
an equivalent of par(mfrow = 1:2) for ggplot. Could you point in the
right direction? Thanks!

Sergiy

--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442

To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2

Luciano Selzer

unread,
May 18, 2010, 4:43:54 PM5/18/10
to Sergiy Nesterko, ggplot2
Have a look at this post
The plot layout section has what you are looking for.

Cheers
Luciano


2010/5/18 Sergiy Nesterko <serge.n...@gmail.com>

Sergiy Nesterko

unread,
May 18, 2010, 5:01:08 PM5/18/10
to ggplot2
Luciano,

Perfect, thank you. This worked.

Unrelatedly, it's interesting how much base does for you behind the
scenes, and how grid helps customize. I sortof didn't expect that much
of things that need to be filled in to simply put two plots next to
one another. But it's worth it! Thanks again for the useful link.

Sergiy

On May 18, 4:43 pm, Luciano Selzer <luciano.sel...@gmail.com> wrote:
> Have a look at this posthttp://learnr.wordpress.com/2009/04/01/ggplot2-marimekko-replacement-...
> <http://learnr.wordpress.com/2009/04/01/ggplot2-marimekko-replacement-...>The
> plot layout section has what you are looking for.
>
> Cheers
> Luciano
>
> 2010/5/18 Sergiy Nesterko <serge.neste...@gmail.com>
>
>
>
>
>
> > Hi,
>
> > Another question from a ggplot beginner. For the life of me I couldn't
> > find this simple information on the web. I am trying to put two
> > different plots on the same page. In other words, I am trying to find
> > an equivalent of par(mfrow = 1:2) for ggplot. Could you point in the
> > right direction? Thanks!
>
> > Sergiy
>
> > --
> > You received this message because you are subscribed to the ggplot2 mailing
> > list.
> > Please provide a reproducible example:http://gist.github.com/270442
>
> > To post: email ggp...@googlegroups.com
> > To unsubscribe: email ggplot2+u...@googlegroups.com<ggplot2%2Bunsu...@googlegroups.com >
Reply all
Reply to author
Forward
0 new messages