<?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: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842901#M23255</link>
    <description>I would suggest putting the TITLE statement in the PROC instead of prior to your ODS PDF statement.&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=class;&lt;BR /&gt;title 'Histogram for #byval1';&lt;BR /&gt;by sex;&lt;BR /&gt;histogram height;&lt;BR /&gt;run;</description>
    <pubDate>Mon, 07 Nov 2022 16:24:20 GMT</pubDate>
    <dc:creator>svh</dc:creator>
    <dc:date>2022-11-07T16:24:20Z</dc:date>
    <item>
      <title>ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842879#M23254</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
    by sex;
run;

title 'Histogram for #byval1';
ods graphics/height=3in width=4in;

options orientation=landscape nobyline;
ods pdf file="test.pdf";
ods layout gridded columns=2 column_gutter=18 advance=BYGROUP;
ods region;
proc sgplot data=class;
    by sex;
    histogram height;
run;
ods layout end;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output has unwanted title centered above the two plots, which says "Histogram for #byval1", how do I get rid of this unwanted title and leave only the titles above the individual plots?&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="PaigeMiller_0-1667834813065.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77018i3C4D3A11EC6F349E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_0-1667834813065.png" alt="PaigeMiller_0-1667834813065.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 15:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842879#M23254</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-07T15:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842901#M23255</link>
      <description>I would suggest putting the TITLE statement in the PROC instead of prior to your ODS PDF statement.&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=class;&lt;BR /&gt;title 'Histogram for #byval1';&lt;BR /&gt;by sex;&lt;BR /&gt;histogram height;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 07 Nov 2022 16:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842901#M23255</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-11-07T16:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842904#M23256</link>
      <description>&lt;P&gt;That was simple. Thanks! Can I get an explanation of why this works, but my code didn't?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 16:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842904#M23256</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-07T16:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842930#M23257</link>
      <description>I think it's because you want the title in the REGION defined by the ODS REGION statement right before your SGPLOT statement. In your original example, you title is being forced into the top of the document before you've defined the region. This provides an example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p06ji2uhvayhq5n1eik2z2rf2ga8a.htm#p0dq2wjn4pp20vn1igvir0pq9byaa" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p06ji2uhvayhq5n1eik2z2rf2ga8a.htm#p0dq2wjn4pp20vn1igvir0pq9byaa&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842930#M23257</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-11-07T17:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842932#M23258</link>
      <description>&lt;P&gt;Makes sense! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 18:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842932#M23258</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-07T18:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842934#M23259</link>
      <description>&lt;P&gt;Although TITLE statements are global in nature. their placement within the context of an ODS LAYOUT can affect the timing of when the title is generated. In your example, any TITLE statement before the ODS LAYOUT statement will be generated as a page title (the behavior you saw). A TITLE statement between the ODS LAYOUT statement and the first ODS REGION statement will generate a title within the first cell &lt;STRONG&gt;BEFORE&lt;/STRONG&gt; the content of the region is processed. A TITLE statement within the ODS REGION block affects the titles for the procedure output, which was your desired result.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 18:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/842934#M23259</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-11-07T18:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/843099#M23267</link>
      <description>&lt;P&gt;Followup question for&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181543"&gt;@svh&lt;/a&gt;&amp;nbsp;(and anyone else who might have an answer)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Above, I created one layout using ODS LAYOUT GRIDDED, but suppose now I want to create a 2nd such layout in the same program, for example instead of using SASHELP.CLASS, now I also want similar histograms in a layout from SASHELP.CARS, in the same program. It seems to me that then I need to include&amp;nbsp;&lt;FONT face="courier new,courier"&gt;title;&lt;/FONT&gt; before I create the 2nd ODS LAYOUT GRIDDED, otherwise the title from the SASHELP.CLASS histograms carries over to the 2nd grid of histograms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you agree? Or is there some other way?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 12:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/843099#M23267</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-08T12:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/843142#M23271</link>
      <description>&lt;P&gt;A few related comments:&lt;/P&gt;
&lt;P&gt;1. At some point you might want to panel graphs and tables that are generated by SAS procedures that generate procedure titles. Use the&amp;nbsp;&lt;BR /&gt;ODS NOPROCTITLE;&lt;BR /&gt;option to suppress procedure titles, as shown in&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/08/14/advanced-ods-controlling-precisely-output-displayed/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/08/14/advanced-ods-controlling-precisely-output-displayed/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Your example shows multiple graphs of the same type (a histogram). In this case, it is sometimes helpful to switch to using the SGPANEL procedure and the PANELBY option, especially if you want to control the placement of labels within cells or coordinate the range of axes. See&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2021/02/17/data-driven-titles-sgpanel.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2021/02/17/data-driven-titles-sgpanel.html&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2011/08/12/side-by-side-bar-plots-in-sas-9-3.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2011/08/12/side-by-side-bar-plots-in-sas-9-3.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/843142#M23271</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-08T15:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODS LAYOUT GRIDDED with BYGROUP — how to eliminate unwanted title?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/843157#M23275</link>
      <description>&lt;P&gt;Correct, because the content of that title statement is still global.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-LAYOUT-GRIDDED-with-BYGROUP-how-to-eliminate-unwanted-title/m-p/843157#M23275</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-11-08T15:43:12Z</dc:date>
    </item>
  </channel>
</rss>

