search for: pushlayout

Displaying 4 results from an estimated 4 matches for "pushlayout".

2006 May 21
1
print.trellis(..., draw.in=...)
...and the code in the link above (which works) is that in the for loop at the end the 'with' in the code in the link has been removed and draw.in= used in the print call in its place. I am using Windows XP and get similar messages in 2.2.1 and 2.3.0 patched. library(grid) library(lattice) pushLayout <- function(nr, nc, name="layout") { pushViewport(viewport(layout=grid.layout(nr, nc), name=name)) for (i in 1:nr) { for (j in 1:nc) { pushViewport(viewport(layout.pos.row=i, layout.pos.col=j)) upViewport() } } upViewport() } names.vpPath <- names.viewpo...
2005 Oct 11
1
aligning column of xyplots and removing space between them
...different question): ### everything from here to the grid.newpage line is just ### to set up the viewports for the graphs so you ### can just go to the comment that says ### 'relevant part starts here' library(grid) library(lattice) trellis.par.set(theme = col.whitebg()) grid.newpage() pushLayout <- function(nr, nc, ..., name="layout") { pushViewport(viewport(layout=grid.layout(nr, nc, ...), name=name)) for (i in 1:nr) { for (j in 1:nc) { pushViewport(viewport(layout.pos.row=i, layout.pos.col=j)) upViewport() } } upViewport() } with.vpPath <- wit...
2005 May 31
2
Problem going back to a viewport with gridBase
I am setting up base plots -- one in viewport A and and one in B. This part works fine. But if I go back to A after having done B and add horizontal lines it seems to not use the correct coordinates. How do I tell it to resume using A's coordinates? I am already using par(fig = gridFIG()) but it seems that that's not enough to reestablish them. What happens is that when I go back to
2005 May 31
2
Problem going back to a viewport with gridBase
I am setting up base plots -- one in viewport A and and one in B. This part works fine. But if I go back to A after having done B and add horizontal lines it seems to not use the correct coordinates. How do I tell it to resume using A's coordinates? I am already using par(fig = gridFIG()) but it seems that that's not enough to reestablish them. What happens is that when I go back to