Multiple plots in R on one page using par(pin) result in wasted space -


i want plot several plots in r, 24 in 1 page. furthermore, want plots have rectangular form. when use:

par(mfrow = c(6,4),pin = c(2,1)) 

i plot massive white space wasted, @ bottom , top of plots. if try reduce outer margin of plots using:

par(mfrow = c(6,4),pin = c(2,1), oma = c(0,0,0,0)) 

the result same.

you can control margins, have tried this:

    layout(matrix(c(1:24), nrow = 6, byrow = t));par(mfrow = c(6,4),pin = c(2,1), oma = c(0,0,0,0)); (i in 1:24) { plot(rnorm(100), main = sprintf("%do gráfico", i)) } 

enter image description here


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -