<?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 How do I change panel headings in proc sgplot? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286163#M10144</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Proc SGPanel to create two histograms for different levels of the same variable (named "LGBQ"). LGBQ is coded to have values of either 1 or 2; I have used Proc Format to indicate that 1 = Heterosexual and 2 = LGBQ. When I use Proc SGPanel, the two panels are labeled "LGBQ=1" and "LGBQ=2". Is there a way to have Proc SGPanel pull the formatted labels instead of the values for the variables? Or to alter the headings for each column? I'm using SAS Enterprise Guide 4.3. Any help or insight would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a relative SAS newbie and couldn't find any articles or posts that addressed this issue; apologies if there is one already that I missed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2016 15:27:00 GMT</pubDate>
    <dc:creator>abarnett313</dc:creator>
    <dc:date>2016-07-21T15:27:00Z</dc:date>
    <item>
      <title>How do I change panel headings in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286163#M10144</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Proc SGPanel to create two histograms for different levels of the same variable (named "LGBQ"). LGBQ is coded to have values of either 1 or 2; I have used Proc Format to indicate that 1 = Heterosexual and 2 = LGBQ. When I use Proc SGPanel, the two panels are labeled "LGBQ=1" and "LGBQ=2". Is there a way to have Proc SGPanel pull the formatted labels instead of the values for the variables? Or to alter the headings for each column? I'm using SAS Enterprise Guide 4.3. Any help or insight would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a relative SAS newbie and couldn't find any articles or posts that addressed this issue; apologies if there is one already that I missed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286163#M10144</guid>
      <dc:creator>abarnett313</dc:creator>
      <dc:date>2016-07-21T15:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change panel headings in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286166#M10145</link>
      <description>&lt;P&gt;Showing the code you used would help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you actually use assign the format to the variable in either the data set or the SGPANEL? it would look like this:&lt;/P&gt;
&lt;P&gt;Format LBGQ formatname. ;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286166#M10145</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-21T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change panel headings in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286167#M10146</link>
      <description>&lt;P&gt;Greetings, I thought the formatted value will be shown automatically as long as you are also using the format statement? Have you used the format statement within your proc sgpanel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 15:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286167#M10146</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-07-21T15:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change panel headings in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286176#M10147</link>
      <description>&lt;P&gt;I used this code for proc sgpanel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgpanel data=D1; panelby LGBQ / uniscale=all; histogram VictimLGBT; density VictimLGBT; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I formatted the dataset using this statement (earlier in the program than proc sgpanel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&amp;nbsp;value LGBQ 1 = "Heterosexual" 2 = "LGBQ"; run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 16:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286176#M10147</guid>
      <dc:creator>abarnett313</dc:creator>
      <dc:date>2016-07-21T16:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change panel headings in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286177#M10148</link>
      <description>&lt;P&gt;Ah. Now I see what you mean. I added a format statement [ format LGBQ LGBQ.; ], and it produced the desired results. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 16:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-do-I-change-panel-headings-in-proc-sgplot/m-p/286177#M10148</guid>
      <dc:creator>abarnett313</dc:creator>
      <dc:date>2016-07-21T16:13:26Z</dc:date>
    </item>
  </channel>
</rss>

