Re: [R] plot within a loop

2007-10-24 Thread Matthew Keller
Hi Santanu, You can write it out to a PDF: a.new = 1.2 value.b = seq(from = 0, to = 1, by = 0.001) pdf('MyGraphs.pdf',width=11, height=8.5,pointsize=12, paper='special') par(mfrow = c(3,2)) for (i in 1:length(d)){ plot(value.b, dbeta(shape1 = value.b, shape2 = d[i], a.new), main = paste("B[",i,"]

[R] plot within a loop

2007-10-24 Thread Santanu Pramanik
Hi , I'm having problem with the following plot. Basically I have to do 51(length of d, see below) plots. I want 6 plots (say) in a page and rests are in different pages. win.graph() starts a plot in new page. But I'm not being able to combine par(mfrow = c(3,2)) and win.graph() within a loop.