peter cowan cowanpdgmailcom paul wed aug 6 2008 140 pm paul murrell wrote im trying write function produces main plotting region several square plots along right side ideally size right side plots scale height entire plot yet never overlap another secondary plot following two snippets get close however resize plot horizontally right side plots green squares get smaller whereas id like remain size seems answer lies setting layout width side plot column clever way havent able discover suggestions achieve effect improvements code welcome hopefully explanation makes goal clear also note real application function arbitrary numbers side plots sorry im completely sure want end either following come close thanks response two suggestions latter close hoping four however ideally would gap side plots plot tall phrased another way total plot gets larger would like second column lay1 take greater proportion figure resize changes allocation column space x dont suppose possible cheers peter side plots square attached tall plot get gaps top bottom wide plot get gap right lay1 gridlayout1 2 widthsc10 1 lay2 gridlayout10 1 respecttrue justleft gridnewpage pushviewportviewportwidth8 height8 layoutlay1 gridrectgpgparcolgrey pushviewportviewportlayoutposcol1 gridrectgpgparfillgrey popviewport pushviewportviewportlayoutposcol2 layoutlay2 110 pushviewportviewportlayoutposrowi gridrectgpgparfilllight grey popviewport popviewport side plots square separate tall plot get gaps vertically wide plot get gap right lay1 gridlayout10 2 widthsc10 1 gridnewpage pushviewportviewportwidth8 height8 layoutlay1 gridrectgpgparcolgrey pushviewportviewportlayoutposcol1 gridrectgpgparfillgrey popviewport 110 pushviewportviewportlayoutposcol2 layoutposrowi pushviewportviewportx0 widthunit1 snpc heightunit1 snpc justleft gridrectgpgparfilllight grey popviewport2 paul ______________________________________________ rhelprprojectorg mailing list httpsstatethzchmailmanlistinforhelp please read posting guide httpwwwrprojectorgpostingguidehtml provide commented minimal selfcontained reproducible code thu 07 aug 2008 210213 0700 r grid layout scaling viewport width based solely height