<?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 SGPLOT: How do I remove the auto title from by line statement in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/452768#M15539</link>
    <description>&lt;P&gt;SAS 9.4 TS Level 1M2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So whenever I run an SGPLOT with a by statement&amp;nbsp;it automatically inserts a second title -- how do I remove that second title?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code (be nice as I'm just learning the graphics package):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
ods listing style=DEFAULT image_dpi=300 gpath="FILE_LOCATION"; 
ods graphics / imagename="IMAGE_NAME";

PROC SGPLOT DATA=DATA_SET UNIFORM=SCALE;
BY VAR1 VAR2;
TITLE H=9pt 'TITLE: VAR1=#byval(VAR1) VAR2=#byval(VAR2)';

SCATTER X=X Y=Y / GROUP=ID MARKERATTRS=(SIZE=5) ;

XAXIS DISPLAY=(NOLABEL) TYPE=TIME INTERVAL=MONTH MINOR VALUEATTRS=(size=7);
YAXIS LABEL='LABEL' TYPE=LINEAR VALUES=(0 to 10 by 1) LABELATTRS=(size=8) VALUEATTRS=(size=7) valueshint;

KEYLEGEND / BORDER POSITION=RIGHT LOCATION=OUTSIDE ACROSS=1 TITLE='ID' SORTORDER=ASCENDING titleattrs=(size=7) valueattrs=(size=6);

RUN; ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 11:41:06 GMT</pubDate>
    <dc:creator>KDS5</dc:creator>
    <dc:date>2018-04-10T11:41:06Z</dc:date>
    <item>
      <title>SGPLOT: How do I remove the auto title from by line statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/452768#M15539</link>
      <description>&lt;P&gt;SAS 9.4 TS Level 1M2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So whenever I run an SGPLOT with a by statement&amp;nbsp;it automatically inserts a second title -- how do I remove that second title?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code (be nice as I'm just learning the graphics package):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
ods listing style=DEFAULT image_dpi=300 gpath="FILE_LOCATION"; 
ods graphics / imagename="IMAGE_NAME";

PROC SGPLOT DATA=DATA_SET UNIFORM=SCALE;
BY VAR1 VAR2;
TITLE H=9pt 'TITLE: VAR1=#byval(VAR1) VAR2=#byval(VAR2)';

SCATTER X=X Y=Y / GROUP=ID MARKERATTRS=(SIZE=5) ;

XAXIS DISPLAY=(NOLABEL) TYPE=TIME INTERVAL=MONTH MINOR VALUEATTRS=(size=7);
YAXIS LABEL='LABEL' TYPE=LINEAR VALUES=(0 to 10 by 1) LABELATTRS=(size=8) VALUEATTRS=(size=7) valueshint;

KEYLEGEND / BORDER POSITION=RIGHT LOCATION=OUTSIDE ACROSS=1 TITLE='ID' SORTORDER=ASCENDING titleattrs=(size=7) valueattrs=(size=6);

RUN; ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 11:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/452768#M15539</guid>
      <dc:creator>KDS5</dc:creator>
      <dc:date>2018-04-10T11:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: How do I remove the auto title from by line statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/452772#M15540</link>
      <description>&lt;P&gt;I would guess that:&lt;/P&gt;
&lt;PRE&gt;options nobyline;&lt;/PRE&gt;
&lt;P&gt;Should suppress that, but I have nothing to test it on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing wrong with your code, other than using all uppercase and not indenting sections.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 12:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/452772#M15540</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-10T12:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: How do I remove the auto title from by line statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/452779#M15541</link>
      <description>&lt;P&gt;Thanks, RW9 --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the "nobyline" syntax when Google searching for the answer but was trying to embed it in the ods line codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;KDS5&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 12:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/452779#M15541</guid>
      <dc:creator>KDS5</dc:creator>
      <dc:date>2018-04-10T12:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: How do I remove the auto title from by line statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/531778#M17732</link>
      <description>&lt;P&gt;Thanks for the solution and the post! Just what I was looking for. By using the nobyline option and combining with #byvar1 and #byval1, I was able to create my own custom titles for plots utilizing the by statement.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-do-I-remove-the-auto-title-from-by-line-statement/m-p/531778#M17732</guid>
      <dc:creator>pkfamily</dc:creator>
      <dc:date>2019-01-31T19:24:50Z</dc:date>
    </item>
  </channel>
</rss>

