<?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 I need to create the subscript lower case letter n on the SGPLOT axis in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885072#M1341</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;I need to create the subscript lower case letter n on the&amp;nbsp; SGPLOT axis. I read online how&lt;BR /&gt;to do this using Unicode but it does not work. It displays blank square&lt;BR /&gt;instead of a subscript. There is no error or warning messages in the&lt;BR /&gt;log.&amp;nbsp;I used the dataset from the SASHELP library so that anyone can ran the code.&amp;nbsp; I am using SAS free server for academics. I am wondering&amp;nbsp; if the problem is with the server rather than with the code itself.&amp;nbsp; The code is below. Please, advise.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods escapechar='~';
ODS GRAPHICS / ANTIALIASMAX=4100 ATTRPRIORITY=NONE ;
ODS PDF FILE="&amp;amp;reports.SGPLOT_with_subsript_n.pdf";

PROC SGPLOT DATA=SASHELP.CARS;
SCATTER X=LENGTH Y=Weight;
/* Use Unicode for subscript lowercase n */
YAXIS LABEL="W~{unicode '2099'x}"
labelattrs=(size=14pt family='Times New Roman Uni')
;
XAXIS LABEL="L~{unicode '2099'x}"
labelattrs=(size=14pt FAMILY="Times New Roman Uni")
;
RUN;

ODS PDF CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2023 14:01:14 GMT</pubDate>
    <dc:creator>Yury2</dc:creator>
    <dc:date>2023-07-17T14:01:14Z</dc:date>
    <item>
      <title>I need to create the subscript lower case letter n on the SGPLOT axis</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885072#M1341</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;I need to create the subscript lower case letter n on the&amp;nbsp; SGPLOT axis. I read online how&lt;BR /&gt;to do this using Unicode but it does not work. It displays blank square&lt;BR /&gt;instead of a subscript. There is no error or warning messages in the&lt;BR /&gt;log.&amp;nbsp;I used the dataset from the SASHELP library so that anyone can ran the code.&amp;nbsp; I am using SAS free server for academics. I am wondering&amp;nbsp; if the problem is with the server rather than with the code itself.&amp;nbsp; The code is below. Please, advise.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods escapechar='~';
ODS GRAPHICS / ANTIALIASMAX=4100 ATTRPRIORITY=NONE ;
ODS PDF FILE="&amp;amp;reports.SGPLOT_with_subsript_n.pdf";

PROC SGPLOT DATA=SASHELP.CARS;
SCATTER X=LENGTH Y=Weight;
/* Use Unicode for subscript lowercase n */
YAXIS LABEL="W~{unicode '2099'x}"
labelattrs=(size=14pt family='Times New Roman Uni')
;
XAXIS LABEL="L~{unicode '2099'x}"
labelattrs=(size=14pt FAMILY="Times New Roman Uni")
;
RUN;

ODS PDF CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 14:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885072#M1341</guid>
      <dc:creator>Yury2</dc:creator>
      <dc:date>2023-07-17T14:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: I need to create the subscript lower case letter n on the SGPLOT axis</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885074#M1342</link>
      <description>&lt;P&gt;See this example from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/How-to-add-superscript-to-sgplot-labels-to-the-power-6/m-p/876426#M23796" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/How-to-add-superscript-to-sgplot-labels-to-the-power-6/m-p/876426#M23796&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 14:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885074#M1342</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-17T14:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: I need to create the subscript lower case letter n on the SGPLOT axis</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885091#M1343</link>
      <description>&lt;P&gt;Thank you for suggestions. Unfortunately, it does not work. More specifically, the superscript 6 as in your example works but subscript n (Unicode 2099) does not. I am including the code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; 
 data _anno; 
length label $ 200; 
 drawspace="layoutpercent"; function="text"; textweight="normal"; textsize=12;textcolor="black"; width=200; 
 x1=50; y1=2.5;label="XXXXX(*ESC*){unicode '2099'x}"; output; 
 x1=2.5;  y1=50;rotate=90;label="YYYY(*ESC*){sub '6'}"; output; 
 run; 
 
proc sgplot data=sashelp.class sganno=_anno noautolegend ;    
scatter x=weight y=height/group=sex datalabel=name;    
xaxis label=' '; 
yaxis label=' '; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jul 2023 15:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885091#M1343</guid>
      <dc:creator>Yury2</dc:creator>
      <dc:date>2023-07-17T15:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: I need to create the subscript lower case letter n on the SGPLOT axis</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885249#M1344</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*There is no need to use unicode character 
if you are using macro %sganno ,just type in it*/

 data _anno; 
length label $ 200; 
 drawspace="layoutpercent"; function="text"; textweight="normal"; textsize=12;textcolor="black"; width=200; 
 x1=50; y1=2.5;label="XXXXX(*ESC*){sub 'n'}"; output; 
 x1=2.5;  y1=50;rotate=90;label="YYYY(*ESC*){sub 'n'}"; output; 
 run; 
 
proc sgplot data=sashelp.class sganno=_anno noautolegend ;    
scatter x=weight y=height/group=sex datalabel=name;    
xaxis label=' '; 
yaxis 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-1689680225265.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85876i29F345699FE3E0CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1689680225265.png" alt="Ksharp_0-1689680225265.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 11:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885249#M1344</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-18T11:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: I need to create the subscript lower case letter n on the SGPLOT axis</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885255#M1345</link>
      <description>&lt;P&gt;Thanks a lot. This worked!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 12:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/I-need-to-create-the-subscript-lower-case-letter-n-on-the-SGPLOT/m-p/885255#M1345</guid>
      <dc:creator>Yury2</dc:creator>
      <dc:date>2023-07-18T12:17:16Z</dc:date>
    </item>
  </channel>
</rss>

