<?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 Adding greater than or equal to symbol in XAXISTABLE in SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Adding-greater-than-or-equal-to-symbol-in-XAXISTABLE-in-SGPLOT/m-p/803202#M22686</link>
    <description>&lt;P&gt;I am attempting to add&amp;nbsp;&lt;SPAN&gt;≥ in my XAXISTABLE in SGPLOT using the unicode value 2265 but haven't been able to get that to show up. I am using a format for the values. I have had success for adding&amp;nbsp;≥ in legends and inset boxes, but the XAXISTABLE is not working. The data in the SGPLOT procedure come from survival analysis.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="~";
proc format;
value grp 
	1 = "A + B"
	2 = "A + C"
	3 = "A + D"
	4 = "B + C"
	5 = "B + D"
	6 = "C + D"
	7 = "~{unicode '2265'x}3 Groups";
run;
proc lifetest data=analysis plots=s(atrisk=0 45 90 135 179);
time tt_event*event(0);
strata group;
ods output survivalplot=surv means=means;
run;
data surv2; set surv;
fail=(1-survival)*100;
run;
proc sgplot data=surv2 noautolegend;
format stratumnum grp.;
step x=time y=fail / group=stratumnum lineattrs=(thickness=1);
xaxis values=(0 45 90 135 180) label='Time to Event (Days)' labelattrs=(size=12) valueattrs=(size=12);
xaxistable atrisk / x=tatrisk class=stratumnum valueattrs=(size=12) labelattrs=(size=12) title="At Risk" titleattrs=(size=12);
yaxis label="Percent with Event" labelattrs=(size=12) valueattrs=(size=12);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using SAS EG 7.15&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 19:15:14 GMT</pubDate>
    <dc:creator>jwestra84</dc:creator>
    <dc:date>2022-03-21T19:15:14Z</dc:date>
    <item>
      <title>Adding greater than or equal to symbol in XAXISTABLE in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-greater-than-or-equal-to-symbol-in-XAXISTABLE-in-SGPLOT/m-p/803202#M22686</link>
      <description>&lt;P&gt;I am attempting to add&amp;nbsp;&lt;SPAN&gt;≥ in my XAXISTABLE in SGPLOT using the unicode value 2265 but haven't been able to get that to show up. I am using a format for the values. I have had success for adding&amp;nbsp;≥ in legends and inset boxes, but the XAXISTABLE is not working. The data in the SGPLOT procedure come from survival analysis.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="~";
proc format;
value grp 
	1 = "A + B"
	2 = "A + C"
	3 = "A + D"
	4 = "B + C"
	5 = "B + D"
	6 = "C + D"
	7 = "~{unicode '2265'x}3 Groups";
run;
proc lifetest data=analysis plots=s(atrisk=0 45 90 135 179);
time tt_event*event(0);
strata group;
ods output survivalplot=surv means=means;
run;
data surv2; set surv;
fail=(1-survival)*100;
run;
proc sgplot data=surv2 noautolegend;
format stratumnum grp.;
step x=time y=fail / group=stratumnum lineattrs=(thickness=1);
xaxis values=(0 45 90 135 180) label='Time to Event (Days)' labelattrs=(size=12) valueattrs=(size=12);
xaxistable atrisk / x=tatrisk class=stratumnum valueattrs=(size=12) labelattrs=(size=12) title="At Risk" titleattrs=(size=12);
yaxis label="Percent with Event" labelattrs=(size=12) valueattrs=(size=12);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using SAS EG 7.15&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 19:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-greater-than-or-equal-to-symbol-in-XAXISTABLE-in-SGPLOT/m-p/803202#M22686</guid>
      <dc:creator>jwestra84</dc:creator>
      <dc:date>2022-03-21T19:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding greater than or equal to symbol in XAXISTABLE in SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-greater-than-or-equal-to-symbol-in-XAXISTABLE-in-SGPLOT/m-p/803213#M22687</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;PRE&gt;proc format;
value grp 
	1 = "A + B"
	2 = "A + C"
	3 = "A + D"
	4 = "B + C"
	5 = "B + D"
	6 = "C + D"
	7 = "(*ESC*){unicode '2265'x}3 Groups";
run;&lt;/PRE&gt;
&lt;P&gt;Proc format doesn't use the ESCAPECHAR.&lt;/P&gt;
&lt;P&gt;You may not see that value in a data set viewer depending on settings. Look at it in output though using a font that will display unicode.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 19:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-greater-than-or-equal-to-symbol-in-XAXISTABLE-in-SGPLOT/m-p/803213#M22687</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-21T19:49:39Z</dc:date>
    </item>
  </channel>
</rss>

