Data visualization with SAS programming

Making multiple line header labels with LAYOUT DATALATTICE in GTL

Reply
New Contributor
Posts: 4

Making multiple line header labels with LAYOUT DATALATTICE in GTL

By default, the header labels produced with the LAYOUT LATTICE have 1 line text only. But I need 2 lines. Is it possible to create what I need?

Thanks in advance for any idea.

Vladimir
SAS Super FREQ
Posts: 925

Re: Making multiple line header labels with LAYOUT DATALATTICE in GTL

With a LAYOUT DATALATTICE, this is not currently possible. With a LAYOUT LATTICE, this is possible using a LAYOUT GRIDDED in the cell headers. A simple example is below.

Thanks!
Dan

[pre]
proc template;
define statgraph multiheader;
begingraph;
layout lattice / columns=2 columngutter=10;
cell;
cellheader;
layout gridded;
entry "Line 1";
entry "Line 2";
endlayout;
endcellheader;
layout overlay;
scatterplot x=age y=height;
endlayout;
endcell;
cell;
cellheader;
layout gridded;
entry "Line 1";
entry "Line 2";
endlayout;
endcellheader;
layout overlay;
scatterplot x=age y=weight;
endlayout;
endcell;
endlayout;
endgraph;
end;
run;

proc sgrender data=sashelp.class template=multiheader; run;
[/pre]
New Contributor
Posts: 4

Re: Making multiple line header labels with LAYOUT DATALATTICE in GTL

Thank you very much for clarification.

Best,
Vladimir
Ask a Question
Discussion stats
  • 2 replies
  • 155 views
  • 0 likes
  • 2 in conversation