<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to set different row gutters within three-row lattice layout and align properly in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/how-to-set-different-row-gutters-within-three-row-lattice-layout/m-p/406397#M13880</link>
    <description>&lt;P&gt;The row gutter setting apply to all the rows in a Lattice.&amp;nbsp; We did not anticipate the need for a varying amount of gutter.&amp;nbsp; It would be interesting to understand the reason for this need.&amp;nbsp; Given what you are doing, you would have to set all the axis options in the same manner to get similar axis layout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative may be to use one outer Layout Lattice, with three independent Lattices (each having 2 columns).&amp;nbsp; Then potentially, you could use the OUTERPAD option on each inner Lattice to create a varying gutter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lattice_Varying_Gutter.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16134iED67ED284107CD9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lattice_Varying_Gutter.png" alt="Lattice_Varying_Gutter.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
  define statgraph Varying_Gutters;
    begingraph;
	  layout lattice / columns=1 rows=3;
	    layout lattice / columns=2 rows=1  border=true rowdatarange=union;
		  rowaxes;
		    rowaxis;
		  endrowaxes;
		  scatterplot x=cholesterol y=systolic;
		  scatterplot x=cholesterol y=diastolic;
		endlayout;
	    layout lattice / columns=2 rows=1 outerpad=(top=10px) 
                             rowdatarange=union border=true;
		  rowaxes;
		    rowaxis;
		  endrowaxes;
		  scatterplot x=cholesterol y=systolic;
		  scatterplot x=cholesterol y=diastolic;
		endlayout;
	    layout lattice / columns=2 rows=1 outerpad=(top=20px) 
                             rowdatarange=union border=true;
		  rowaxes;
		    rowaxis;
		  endrowaxes;
		  scatterplot x=cholesterol y=systolic;
		  scatterplot x=cholesterol y=diastolic;
		endlayout;
	  endlayout;
    endgraph;
  end;
run;

proc sgrender template=varying_gutters data=sashelp.heart;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 22 Oct 2017 21:55:26 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2017-10-22T21:55:26Z</dc:date>
    <item>
      <title>how to set different row gutters within three-row lattice layout and align properly</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-set-different-row-gutters-within-three-row-lattice-layout/m-p/406390#M13879</link>
      <description>&lt;P&gt;I have been trying in many ways to set different row gutters within a three-row lattice layout. One of the possible ways is to&amp;nbsp;have two layouts, one of which contains a two-row lattice layout and another contains the remaining one-row layout, embedded within a two-row lattice layout. Though this way is feasible, I cannot align properly in x-axis between the upper row1&amp;amp;2 and row3. I have tried to use&amp;nbsp;columndatarange=union and autoalign=auto options in layout lattice statement however neither way works. I am stuck in this situation and any idea will be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="for_post2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16133i7E9D29CF1D19E9AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="for_post2.png" alt="for_post2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 19:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-set-different-row-gutters-within-three-row-lattice-layout/m-p/406390#M13879</guid>
      <dc:creator>swimmingfish</dc:creator>
      <dc:date>2017-10-22T19:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to set different row gutters within three-row lattice layout and align properly</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-set-different-row-gutters-within-three-row-lattice-layout/m-p/406397#M13880</link>
      <description>&lt;P&gt;The row gutter setting apply to all the rows in a Lattice.&amp;nbsp; We did not anticipate the need for a varying amount of gutter.&amp;nbsp; It would be interesting to understand the reason for this need.&amp;nbsp; Given what you are doing, you would have to set all the axis options in the same manner to get similar axis layout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative may be to use one outer Layout Lattice, with three independent Lattices (each having 2 columns).&amp;nbsp; Then potentially, you could use the OUTERPAD option on each inner Lattice to create a varying gutter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lattice_Varying_Gutter.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16134iED67ED284107CD9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lattice_Varying_Gutter.png" alt="Lattice_Varying_Gutter.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
  define statgraph Varying_Gutters;
    begingraph;
	  layout lattice / columns=1 rows=3;
	    layout lattice / columns=2 rows=1  border=true rowdatarange=union;
		  rowaxes;
		    rowaxis;
		  endrowaxes;
		  scatterplot x=cholesterol y=systolic;
		  scatterplot x=cholesterol y=diastolic;
		endlayout;
	    layout lattice / columns=2 rows=1 outerpad=(top=10px) 
                             rowdatarange=union border=true;
		  rowaxes;
		    rowaxis;
		  endrowaxes;
		  scatterplot x=cholesterol y=systolic;
		  scatterplot x=cholesterol y=diastolic;
		endlayout;
	    layout lattice / columns=2 rows=1 outerpad=(top=20px) 
                             rowdatarange=union border=true;
		  rowaxes;
		    rowaxis;
		  endrowaxes;
		  scatterplot x=cholesterol y=systolic;
		  scatterplot x=cholesterol y=diastolic;
		endlayout;
	  endlayout;
    endgraph;
  end;
run;

proc sgrender template=varying_gutters data=sashelp.heart;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Oct 2017 21:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-set-different-row-gutters-within-three-row-lattice-layout/m-p/406397#M13880</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-22T21:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to set different row gutters within three-row lattice layout and align properly</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/how-to-set-different-row-gutters-within-three-row-lattice-layout/m-p/406401#M13881</link>
      <description>&lt;P&gt;Thank you Sanjay for your quick and professional response! It is a great idea to include padding in this case. The only reason for setting different row gutters is to inset the vertical tick values between&amp;nbsp;the second and third row. I was running the program in SAS 9.3 so the new feature of conveniently rotating tick values is not available. I used drawtext statement instead so there is a need to hold an extra space for the vertical tick values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is resolved and I truly appreciate your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2017 00:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/how-to-set-different-row-gutters-within-three-row-lattice-layout/m-p/406401#M13881</guid>
      <dc:creator>swimmingfish</dc:creator>
      <dc:date>2017-10-23T00:00:05Z</dc:date>
    </item>
  </channel>
</rss>

