search for: masterlayout

Displaying 1 result from an estimated 1 matches for "masterlayout".

2012 Jun 20
2
exact relative positioning of lattice plots
...s that I can't vertically justify the placement of the plots within their viewports. As a result, I get more or less than .5" between the plots, depending on the size of the page. Here is a small demonstration: # Load packages library(grid) library(lattice) # Create layout and viewport masterLayout <- grid.layout( nrow = 3, ncol = 1, heights = unit(c(1, .5, 1), c("null", "inches", "null")), respect = matrix(c(0, 1, 0))) vp1 <- viewport(layout.pos.row = 1, name = "vp1", just = c("center", "bottom")) vp2 <- vie...