[R] multiple plots in single frame: 2 upper, 1 lower
Joshua Wiley
jwiley.psych at gmail.com
Wed Jul 20 09:10:00 CEST 2011
Hi,
Try looking at ?layout. Here is a simple example:
layout(matrix(c(1, 2, 3, 3), 2, byrow = TRUE))
plot(1:10); plot(11:20); plot(21:40)
Cheers,
Josh
On Tue, Jul 19, 2011 at 4:07 PM, DrCJones <matthias.goddard at gmail.com> wrote:
> Hi,
>
> par(mfrow = c(2,2))
>
> will create a 2x2 window that I can use to plot 4 diferent figures in:
> [plot1 plot2]
> [plot3 plot4]
>
> But how can do 3 so that the bottom spans the width of the upper two:
>
> [plot1 plot1]
> [p l o t 3]
>
> Is this possible in R?
>
> --
> View this message in context: http://r.789695.n4.nabble.com/multiple-plots-in-single-frame-2-upper-1-lower-tp3679574p3679574.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>
--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
https://joshuawiley.com/
More information about the R-help
mailing list