<?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 change BY statement label in PROC SGPLOT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/795035#M81540</link>
    <description>This works perfect, thank you!</description>
    <pubDate>Tue, 08 Feb 2022 17:25:03 GMT</pubDate>
    <dc:creator>bstarr</dc:creator>
    <dc:date>2022-02-08T17:25:03Z</dc:date>
    <item>
      <title>How to change BY statement label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/795019#M81538</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a series of scatter plots using a BY statement in PROC SGPLOT. The default option is to label each plot with "&amp;lt;variable name&amp;gt;=&amp;lt;value&amp;gt;". While I can control the values of the variable, is there a way to tell SAS I do NOT want to show the variable name? I just want to show the value of each BY group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/795019#M81538</guid>
      <dc:creator>bstarr</dc:creator>
      <dc:date>2022-02-08T16:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to change BY statement label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/795032#M81539</link>
      <description>&lt;P&gt;You can suppress the appearance of the by line by using the option NOBYLINE;&lt;/P&gt;
&lt;P&gt;You can use a title statement to specify just showing the value of the BY Variable(s) using the #byval option;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A brief example:&lt;/P&gt;
&lt;PRE&gt;proc sort data=sashelp.class
   out=work.classsort;
   by age;
run;

options nobyline;
Title "Some titletext";
title2 #byval(age);
proc print data=work.classsort noobs label;
  by age;
run;
options byline;
&lt;/PRE&gt;
&lt;P&gt;Note there are not any quotes around the #byval and that the variable name may be specified. This would likely be helpful if you want just one of multiple by variables in the title or if you want the order in the title to different than on the by statement.&lt;/P&gt;
&lt;P&gt;The "Sometext" title is optional but included to show how to work with a possibly existing title.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option though with different controls might be to use Proc SGPANEL and your by variable on a Panelby with statement with the NOVARNAME option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 17:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/795032#M81539</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-08T17:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to change BY statement label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/795035#M81540</link>
      <description>This works perfect, thank you!</description>
      <pubDate>Tue, 08 Feb 2022 17:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/795035#M81540</guid>
      <dc:creator>bstarr</dc:creator>
      <dc:date>2022-02-08T17:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to change BY statement label in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/796329#M81582</link>
      <description>&lt;P&gt;For a discussion about how to customize titles in a BY-group analysis (including code and examples), see &lt;A href="https://blogs.sas.com/content/iml/2021/02/22/byvar-byval-keywords-sas-titles.html" target="_self"&gt;"How to use the #BYVAR and #BYVAL keywords to customize graph titles in SAS."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 16:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-change-BY-statement-label-in-PROC-SGPLOT/m-p/796329#M81582</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-02-15T16:40:04Z</dc:date>
    </item>
  </channel>
</rss>

