<?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: Get superscript and less-than-or-equal-to to show in SGPANEL labels in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799737#M22660</link>
    <description>&lt;P&gt;There are a few issues issues here:&lt;/P&gt;
&lt;P&gt;First,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;is correct. You MUST use the default escape char sequence, which is (*ESC*), when using inline functions in PROC FORMAT for ODS Graphics output, . In the procedures, you can use the redefined character.&lt;/P&gt;
&lt;P&gt;Second, the SUP and SUB functions are supported only in annotation in the SGPANEL procedure. However, you CAN use the Unicode equivalent of s superscript 2 in your PROC FORMAT, which is '00b2'x.&lt;/P&gt;
&lt;P&gt;Third, your Unicode specifications should be wrapped in single quotes, followed by an 'x' (for hex). For example:&amp;nbsp;(*ESC*){unicode '00b2'x}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 04:59:37 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2022-03-03T04:59:37Z</dc:date>
    <item>
      <title>Get superscript and less-than-or-equal-to to show in SGPANEL labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799691#M22656</link>
      <description>&lt;P&gt;As of right now, the output graph is writing out the text exactly rather than translating it to a superscript or less-than-or-equal-to symbol.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
 value $BMI
 	'Not Obese' 	= "BMI &amp;lt; 30 kg/m^{super 2}"
	'Obese'			= "30 ^{unicode 2264} BMI ^{unicode 2264} 40 kg/m^{super 2}"
	'Severely Obese'= "BMI &amp;gt; 40 kg/m^{super 2}"
	'All Subjects'	= "All Subjects";
run;

ods escapechar = "^";
proc sgpanel data = fig23 (where = (SPECTYPE ^in ("Breast Milk", "Plasma"))) pad = (top=5% bottom=5%) sganno = footnote3;
 panelby BMIGRP ABRV_SPECTYPE / layout = lattice onepanel novarname;
 histogram PCOMP / scale = count datalabel = count;
 format BMIGRP $BMI.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Mar 2022 21:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799691#M22656</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2022-03-02T21:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get superscript and less-than-or-equal-to to show in SGPANEL labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799708#M22657</link>
      <description>&lt;P&gt;Try using *ESC* in place of the ^ in the format definitions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 23:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799708#M22657</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-02T23:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get superscript and less-than-or-equal-to to show in SGPANEL labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799737#M22660</link>
      <description>&lt;P&gt;There are a few issues issues here:&lt;/P&gt;
&lt;P&gt;First,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;is correct. You MUST use the default escape char sequence, which is (*ESC*), when using inline functions in PROC FORMAT for ODS Graphics output, . In the procedures, you can use the redefined character.&lt;/P&gt;
&lt;P&gt;Second, the SUP and SUB functions are supported only in annotation in the SGPANEL procedure. However, you CAN use the Unicode equivalent of s superscript 2 in your PROC FORMAT, which is '00b2'x.&lt;/P&gt;
&lt;P&gt;Third, your Unicode specifications should be wrapped in single quotes, followed by an 'x' (for hex). For example:&amp;nbsp;(*ESC*){unicode '00b2'x}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 04:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799737#M22660</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-03-03T04:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get superscript and less-than-or-equal-to to show in SGPANEL labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799822#M22661</link>
      <description>&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2011/11/14/the-power-of-unicode/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2011/11/14/the-power-of-unicode/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2015/07/29/unicode-in-formatted-data-sas-9-40m3/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2015/07/29/unicode-in-formatted-data-sas-9-40m3/&lt;/A&gt;</description>
      <pubDate>Thu, 03 Mar 2022 12:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Get-superscript-and-less-than-or-equal-to-to-show-in-SGPANEL/m-p/799822#M22661</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-03-03T12:41:09Z</dc:date>
    </item>
  </channel>
</rss>

