exact positioning of plots with grid.layout
问题 I have two lattice plots. I need to position one above the other, and I need exactly .5" of vertical space between them. My thought is to use grid.layout to specify a three-row layout, with the middle row being exactly .5" high. Then I can print one plot to the top row and the other plot to the bottom row. It's almost working. The problem is that I can't get the middle row to be exactly .5" high. Here's a minimal example: pdf(file='example.pdf', height=12) # Create layout and viewports