The following example shows a very simple LATTICE layout:
proc template;
define statgraph intro;
begingraph;
entrytitle "Two-Cell Lattice Layout";
layout lattice;
barchart category=age;
scatterplot x=height y=weight;
endlayout;
endgraph;
end;
run;
proc sgrender data=sashelp.class template=intro;
run;
Here is the output.
In a LATTICE layout, each plot statement is considered independent and is placed in a
separate cell. When no grid size is provided, the default layout creates a graph with one
column of cells, and it allots each cell the same amount of space. The number of rows in
the grid is determined by the number of stand-alone plot statements ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.