peter cowan cowanpdgmailcom hello im trying write function using gridbase package id like push several base subplots larger plot constructed grid however im trouble getting consistent results running function plotting window quartz closed left open plot function repeated window output saved pdf see example case pdf plot pages preceded blank page however leaving either plotnew gridnewpage presents different problems looked r graphics book package vignette didnt see particular issue addressed thanks advance peter myplot function gridnewpage plotnew n 10 datalayout gridlayoutncol 2 width unitc1 1n cnull null pushviewportviewportwidth 8 height 8 layout datalayout gridrectgpgparcolgrey fori 1n pushviewportviewport 05 n x 1 height unit1n npc width unit1n npc parplt gridplt new true gridrectgpgparfilllight grey dens densityrnorm10 plotdensitydens axes false mar c0000 main xlab ylab upviewport pushviewportviewportxscale c0 1 layoutposcol 1 gridrectgpgparfillgrey gridpoints upviewport upviewport myplot myplot pdf myplot myplot devoff ______________________________________________ rhelprprojectorg mailing list httpsstatethzchmailmanlistinforhelp please read posting guide httpwwwrprojectorgpostingguidehtml provide commented minimal selfcontained reproducible code thu 07 aug 2008 215221 0700 r gridbase newpage gridnewpage