Re: [R] multiple plots in R

2008-11-23 Thread Felipe Carrillo
Here's one way with ggplot2 library(ggplot2) p <- qplot(mpg, wt, data=mtcars) vplayout <- function(x, y) viewport(layout.pos.row=x, layout.pos.col=y) grid.newpage() pushViewport(viewport(layout=grid.layout(3,3))) print(p, vp=vplayout(1,1)) print(p, vp=vplayout(1,2)) print(p, vp=vplayout(1,3)) prin

Re: [R] multiple plots in R

2008-11-23 Thread Sebastian P. Luque
On Sun, 23 Nov 2008 18:19:19 -0800, Suyan Tian <[EMAIL PROTECTED]> wrote: > Hi, I just try to draw multiple plots in one page using R, I used par > command. For example I have 7 plots, but instead of arranging them in > the default way > plot1 plot2 plot3 plot4 plot5 plot6 plot7 > I want them in

Re: [R] multiple plots in R

2008-11-23 Thread Sarah Goslee
You can use frame() to skip a place. On Sun, Nov 23, 2008 at 9:19 PM, Suyan Tian <[EMAIL PROTECTED]> wrote: > Hi, I just try to draw multiple plots in one page using R, I used par > command. For example I have 7 plots, but instead of arranging them in the > default way > > plot1plot2 plot3 >