In this case, an external axis that might be displayed near an empty cell is displayed near
a populated cell instead. Here is example output.
Adjusting the Sizes of Rows and Columns
By default, the rows and columns of the lattice are of the same depth and width. You can
use the ROWWEIGHTS= and COLUMNWEIGHTS= options on the LAYOUT
LATTICE statement to designate different row depths or column widths or both.
Consider the following settings:
LAYOUT LATTICE / ROW=2 COLUMNS=2
ROWWEIGHTS=(.6 .4) COLUMNWEIGHTS=(.45 .65);
Figure 12.3 on page 209 uses these settings. The ROWWEIGHTS= setting specifies that
the first row gets 60% of available row space, and the second row gets 40%. The
COLUMNWEIGHTS= setting specifies that the first column gets 45% of available
column space, and the second column gets 65%. Potentially, the settings on these
options affect the space that is allocated to cell headers and to row and column headers.
208 Chapter 12 Creating Lattice Graphs Using the LATTICE Layout
Figure 12.3 LAYOUT LATTICE with Different Row and Column Sizes
In a traditional stock plot, the area devoted to price information is larger than the area
devoted to the volume information. Here is an adjustment made to the row depths for the
graph in Figure 12.8 on page 222:
layout lattice / columns=2 rows=2 rowweights=(.6 .4)
rowdatarange=union columndatarange=union
rowgutter=3px columngutter=3px;
Adjusting the Sizes of Rows and Columns 209

Get SAS 9.4 Graph Template Language, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.