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
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
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
>
3 matches
Mail list logo