<?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: superscript in panel label in SGPANEL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951603#M25149</link>
    <description>&lt;P&gt;Thank you really much for your help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 09:13:53 GMT</pubDate>
    <dc:creator>Abdus-Salaam</dc:creator>
    <dc:date>2024-11-22T09:13:53Z</dc:date>
    <item>
      <title>superscript in panel label in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951541#M25144</link>
      <description>&lt;P&gt;Dear SAS-Community,&lt;/P&gt;&lt;P&gt;i want to have a -1 in superscript in the panel labels (= panelby variable) in SGPANEL (code below). I've tried it with a unicode from another forum post that i've used for the y-axis label (see code below) but it doesn't work. Does someone have a solution to my problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods html5 style=analysis path="D:\Masterthesis\Statistik\2024\Grafiken"
          file="Unkraut-TM_25-4-24_Bhdlg.html";

ods graphics / width=4.5in;
ods escapechar='^';

title height = 1.5 "Mittlere Unkraut-Trockenmasse der Behandlungen";
footnote "Behandlungen innerhalb einer Düngerstufe mit gleichem Buchstabe nicht signifikant voneinander verschieden";


data Unkraut_TM_Bhdlg_N0_MT1;
    set Unkraut_TM_Bhdlg_N0_MT1;
    Low = Median - Standardfehler;
    High = Median + Standardfehler;
	LabelPos = High + 0.4;
run;


data Unkraut_TM_Bhdlg_N0_MT1;
    set Unkraut_TM_Bhdlg_N0_MT1;
    if NStufe = 0 then NStufe_Label = "0 (kg ha^{unicode '207B'x}^{unicode '00B9'x})";
    else if NStufe = 1 then NStufe_Label = "96 (kg ha^{unicode '207B'x}^{unicode '00B9'x})";
run;


proc sgpanel data=Unkraut_TM_Bhdlg_N0_MT1;
    panelby NStufe_Label / noheaderborder headerattrs=(size=11pt weight=bold) novarname; 
    vbarparm category=Behandlung response=Median / 
		group=Behandlung 
		groupdisplay=cluster;
    highlow x=Behandlung low=Low high=High / group=Behandlung 
		lineattrs=(color=black thickness=1 pattern=solid) 
		highcap=serif lowcap=serif;
	scatter x=Behandlung y=LabelPos / 
        datalabel=Buchstabe;
        datalabelattrs=(size=10pt weight=bold color=black)
		datalabelpos=center
        markerattrs=(size=0); 
    rowaxis label="Unkraut-TM (kg ha^{unicode '207B'x}^{unicode '00B9'x})" labelattrs=(size=11pt);
    colaxis display=none; 
run;

ods html5 close;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Nov 2024 18:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951541#M25144</guid>
      <dc:creator>Abdus-Salaam</dc:creator>
      <dc:date>2024-11-21T18:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: superscript in panel label in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951572#M25145</link>
      <description>&lt;P&gt;You might try using PROC TEMPLATE and PROC SGRENDER -- see a bunch of examples here:&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/sesug/2022/SESUG2022_Paper_227_Final_PDF.pdf" target="_blank"&gt;https://www.lexjansen.com/sesug/2022/SESUG2022_Paper_227_Final_PDF.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...but it's likely more trouble than it's worth.&amp;nbsp; I have tried to do something similar in SGPLOT -- trying to add superscripts to text specified in the TEXT statement, but I had no luck.&amp;nbsp; That said, I did not try the above template / sgrender combo.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 00:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951572#M25145</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2024-11-22T00:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: superscript in panel label in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951581#M25146</link>
      <description>&lt;P&gt;This question has been answered a couple of days before. Check this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950387#M25132" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Superscript-in-yaxis-label-in-PROC-SGPLOT/m-p/950387#M25132&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let label1=weight  (*ESC*){sup 'mw -1'}  ;
%let label2=height  (*ESC*){sub 'mw -1'} ;


/*用于加X轴Y轴标签的上下标*/
data _anno;
length label $ 200;
 drawspace="layoutpercent"; function="text"; textweight="normal"; textsize=12;textcolor="black"; width=200;
 x1=55; y1=2.5;label="&amp;amp;label1."; output;
 x1=2.5;  y1=55;rotate=90;label="&amp;amp;label2."; output;
 run;
/*****画散点图*****/
proc sgpanel data=sashelp.class sganno=_anno;  
panelby sex; 
scatter x=weight y=height;   
rowaxis label=' ';
colaxis label=' ';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1732240380774.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102445i1CAF368FECBB9E7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1732240380774.png" alt="Ksharp_0-1732240380774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 01:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951581#M25146</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-22T01:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: superscript in panel label in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951597#M25147</link>
      <description>&lt;P&gt;To do this for classification values in a variable (such as your panel variable), you will need to use a user-defined format. See the simple example below. Note that, in a user-defined format, you MUST use the default escape sequence (*ESC*) instead of a defined escapechar.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $super 
"F"="R(*ESC*){unicode '00b2'x}"
"M"="D(*ESC*){unicode '00b2'x}"
;
run;

proc sgpanel data=sashelp.class;
format sex $super.;
panelby sex / novarname;
scatter x=weight y=height;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Nov 2024 04:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951597#M25147</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2024-11-22T04:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: superscript in panel label in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951599#M25148</link>
      <description>&lt;P&gt;Here is DanH_sas 's code for this question.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $super(default=80) 
"F"="F (*ESC*){unicode '207B'x}(*ESC*){unicode '00B9'x}"
"M"="M (*ESC*){unicode '207B'x}(*ESC*){unicode '00B9'x}"
;
run;

proc sgpanel data=sashelp.class;
format sex $super.;
panelby sex / novarname headerattrs=(family="Arial Unicode MS" );
scatter x=weight y=height;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1732256277749.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102448i1E501457AB75A028/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1732256277749.png" alt="Ksharp_0-1732256277749.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 06:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951599#M25148</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-22T06:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: superscript in panel label in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951603#M25149</link>
      <description>&lt;P&gt;Thank you really much for your help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 09:13:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951603#M25149</guid>
      <dc:creator>Abdus-Salaam</dc:creator>
      <dc:date>2024-11-22T09:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: superscript in panel label in SGPANEL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951604#M25150</link>
      <description>&lt;P&gt;Thank you really much for your help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 09:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/superscript-in-panel-label-in-SGPANEL/m-p/951604#M25150</guid>
      <dc:creator>Abdus-Salaam</dc:creator>
      <dc:date>2024-11-22T09:14:46Z</dc:date>
    </item>
  </channel>
</rss>

