<?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: SGPlot YAXISTABLE greater than or equal symbol in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401704#M13724</link>
    <description>&lt;P&gt;&lt;A href="https://www.pharmasug.org/proceedings/2017/QT/PharmaSUG-2017-QT15.pdf" target="_blank"&gt;https://www.pharmasug.org/proceedings/2017/QT/PharmaSUG-2017-QT15.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to either use a format or SG annotation.&amp;nbsp; This paper shows one way that I have done it.&amp;nbsp; I though some of our blogs in Graphically Speaking probably show other ways (but I'm not finding one).&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This new blog (insplired by your question) makes it easy to insert a number of special characters into axis tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/10/09/advanced-ods-graphics-axis-tables-contain-special-characters/&amp;nbsp;" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/10/09/advanced-ods-graphics-axis-tables-contain-special-characters/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are two simple illustrations using formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
   input age;
   n = _n_;
   datalines;
1
2
3
;

proc format;
   value agefmt 1 = 'Age'
                2 = "&amp;lt; 12"
                3 = "(*ESC*){Unicode '2265'x} 12";
run;


ods html body='b.html image_dpi=300';
ods graphics on / width=2in height=1.5in;
proc sgplot data=x;
   yaxistable age / position=left nolabel valuejustify=left;
   hbar n / barwidth=0.3;
   format age agefmt.;
   yaxis display=none;
   xaxis display=none;
   run;
ods html close;

data x2;
   input age $ 1-8;
   AxisVar = _n_;
   datalines;
Age
&amp;lt; 12
&amp;gt;= 12
;

data cntlin(keep=type fmtname start label);
   set x2;
   Type    = 'n';
   FmtName = "NewAgeFmt";
   Start   = axisvar;
   Label   = tranwrd(age, '&amp;gt;=', "(*ESC*){Unicode '2265'x}"); 
run;   

proc format cntlin=cntlin; quit;

ods html body='b.html image_dpi=300';
ods graphics on / width=2in height=1.5in;
proc sgplot data=x2;
   yaxistable axisvar / position=left nolabel valuejustify=left;
   hbar axisvar / barwidth=0.3;
   format axisvar newagefmt.;
   yaxis display=none;
   xaxis display=none;
   run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 13:40:03 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-10-12T13:40:03Z</dc:date>
    <item>
      <title>SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401678#M13723</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to include a greater than or equals to symbol in a YAXISTABLE in SGPlot. I am trying all the usual unicode tricks but it doesn't seem to work. I am running 9.4TS1M3 windows 64-bit. Sample code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data table;&lt;BR /&gt; length area $30. diag $100.;&lt;BR /&gt; set data;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;if test='2step' then diag="2-step RPG/POC HbA1c (*ESC*){unicode '2265'x} 6.5%";&lt;BR /&gt; if test='POC' then diag="POC HbA1c (*ESC*){unicode '2265'x} 6.5%";&lt;BR /&gt; if test='TAN' then diag="Full TANDEM score (*ESC*){unicode '2265'x} 14.1";&lt;BR /&gt; if test='RPG' then diag="RPG (*ESC*){unicode '2265'x} 11.1 mmol/l";&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;label diag="Diagnostic test" area="AUROC (95% CI)";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods listing gpath="..." image_dpi=300 style=tfl;&lt;BR /&gt;ods graphics / imagename="Diagnostics forest plot" reset=index height=9in width=8in;&lt;/P&gt;
&lt;P&gt;proc sgplot data=table nowall noborder noautolegend;&lt;BR /&gt; styleattrs axisextent=data;&lt;BR /&gt; scatter y=y_val x=sen / markerattrs=(symbol=squarefilled size=4);&lt;BR /&gt; highlow y=y_val low=sen_l high=sen_u;&lt;/P&gt;
&lt;P&gt;yaxistable diag / label location=inside position=left labelattrs=(size=7) valueattrs=(size=6);&lt;BR /&gt; yaxistable area / label location=inside position=left labelattrs=(size=7) valueattrs=(size=6);&lt;/P&gt;
&lt;P&gt;xaxis display=(nolabel) values=(0 to 100 by 10);&lt;BR /&gt; yaxis reverse display=none;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been able to include these symbols in SGPlot titles and legends, but this is the first time I've attempted to include it in a YAXISTABLE. Is there something I'm missing?&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;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401678#M13723</guid>
      <dc:creator>DGrint</dc:creator>
      <dc:date>2017-10-06T10:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401704#M13724</link>
      <description>&lt;P&gt;&lt;A href="https://www.pharmasug.org/proceedings/2017/QT/PharmaSUG-2017-QT15.pdf" target="_blank"&gt;https://www.pharmasug.org/proceedings/2017/QT/PharmaSUG-2017-QT15.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to either use a format or SG annotation.&amp;nbsp; This paper shows one way that I have done it.&amp;nbsp; I though some of our blogs in Graphically Speaking probably show other ways (but I'm not finding one).&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This new blog (insplired by your question) makes it easy to insert a number of special characters into axis tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/10/09/advanced-ods-graphics-axis-tables-contain-special-characters/&amp;nbsp;" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/10/09/advanced-ods-graphics-axis-tables-contain-special-characters/&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are two simple illustrations using formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
   input age;
   n = _n_;
   datalines;
1
2
3
;

proc format;
   value agefmt 1 = 'Age'
                2 = "&amp;lt; 12"
                3 = "(*ESC*){Unicode '2265'x} 12";
run;


ods html body='b.html image_dpi=300';
ods graphics on / width=2in height=1.5in;
proc sgplot data=x;
   yaxistable age / position=left nolabel valuejustify=left;
   hbar n / barwidth=0.3;
   format age agefmt.;
   yaxis display=none;
   xaxis display=none;
   run;
ods html close;

data x2;
   input age $ 1-8;
   AxisVar = _n_;
   datalines;
Age
&amp;lt; 12
&amp;gt;= 12
;

data cntlin(keep=type fmtname start label);
   set x2;
   Type    = 'n';
   FmtName = "NewAgeFmt";
   Start   = axisvar;
   Label   = tranwrd(age, '&amp;gt;=', "(*ESC*){Unicode '2265'x}"); 
run;   

proc format cntlin=cntlin; quit;

ods html body='b.html image_dpi=300';
ods graphics on / width=2in height=1.5in;
proc sgplot data=x2;
   yaxistable axisvar / position=left nolabel valuejustify=left;
   hbar axisvar / barwidth=0.3;
   format axisvar newagefmt.;
   yaxis display=none;
   xaxis display=none;
   run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 13:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401704#M13724</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-12T13:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401742#M13725</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing my diag variable to numeric and then applying the text as a format worked. Strange that the unicode symbols work with formats but not the underlying data values.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 13:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401742#M13725</guid>
      <dc:creator>DGrint</dc:creator>
      <dc:date>2017-10-06T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401743#M13726</link>
      <description>&lt;P&gt;Glad it worked!&amp;nbsp; At least for now, those are the only two mechanisms.&amp;nbsp; I will try to find a blog example of formats and post it with my original answer.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 13:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401743#M13726</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-06T13:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401787#M13728</link>
      <description>&lt;P&gt;I am going to write a blog where I provide an easy mechanism for generating a format that will handle some of the most common Unicode characters.&amp;nbsp; I appreciate the idea!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 14:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/401787#M13728</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-06T14:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/402495#M13766</link>
      <description>&lt;P&gt;This blog (insplired by your question) makes it easy to insert a number of special characters into axis tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/10/09/advanced-ods-graphics-axis-tables-contain-special-characters/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/10/09/advanced-ods-graphics-axis-tables-contain-special-characters/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 19:59:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/402495#M13766</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-09T19:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/403087#M13789</link>
      <description>&lt;P&gt;Thanks Warren,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is very helpful. As an aside, I've added reference lines to complete the professional look to my forest plot. However, they are being restrained to the axis width. I assume the axisextent=data option is affecting them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in your code you have them spanning the whole graph axistables and scatter plot. Am I missing an option or keyword somewhere?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you advise?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=table nowall noborder noautolegend dattrmap=attrmap;
	styleattrs axisextent=data;
	refline ref / lineattrs=(thickness=20 color=cxf0f0f7);

	scatter y=y_val x=sen / markerattrs=(symbol=squarefilled size=5 color=cx2A25D9) name='sens' legendlabel="Sensitivity";
	highlow y=y_val low=sen_l high=sen_u / lineattrs=(color=cx2A25D9 pattern=1) highcap=serif lowcap=serif transparency=0.3;

	scatter y=y_val x=spec / markerattrs=(symbol=diamondfilled size=5 color=cxB2182B) name='spec' legendlabel="Specificity";
	highlow y=y_val low=spec_l high=spec_u / lineattrs=(color=cxB2182B pattern=1) highcap=serif lowcap=serif transparency=0.3;

	yaxistable diag / valuejustify=left label labeljustify=left location=inside position=left labelattrs=(size=10pt weight=bold) textgroup=ind textgroupid=text;
	yaxistable area / label location=inside position=left labelattrs=(size=10pt weight=bold) textgroup=ind1 textgroupid=text;

	xaxis values=(0 to 100 by 10) label="% (95% CI)";
	yaxis reverse display=none;

	keylegend 'sens' 'spec' / position=top location=inside across=2 noborder;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 10:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/403087#M13789</guid>
      <dc:creator>DGrint</dc:creator>
      <dc:date>2017-10-11T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/403089#M13790</link>
      <description>&lt;P&gt;Reference lines in axis tables are a bit tricky when you want them to extend the full width:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2017/06/01/8973/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2017/06/01/8973/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It says:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PROC SGPLOT requires that you specify LOCATION=INSIDE for all of the Y-axis tables if you want reference lines to extend across the entire figure. It also requires you to display color bands in the Y axis. However, you can make them 100% transparent by specifying COLORBANDATTRS=(TRANSPARENCY=1).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="text"&gt;ods rtf file="&amp;amp;file.Ref.rtf" style=pearl image_dpi=300;
* Draw the graph with reference lines;
proc sgplot data=plot4 noautolegend noborder dattrmap=attrmap;
   by bg;
   refline ref;
   yaxistable rowlab    / position=left textgroup=value textgroupid=aemap
                          pad=(right=.2in) &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;location=inside&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;;
   yaxistable acount ap / position=left labelattrs=(size=10px) &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;location=inside&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;
                          valueattrs=(color=red) labelattrs=(color=red) valuejustify=right;
   yaxistable bcount bp / position=left labelattrs=(size=10px) &lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;location=inside&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;
                          valueattrs=(color=blue) labelattrs=(color=blue) valuejustify=right;
   scatter x=acount y=obsid / x2axis markerattrs=(symbol=circle   color=red  size=10);
   scatter x=bcount y=obsid / x2axis markerattrs=(symbol=triangle color=blue size=10);
   scatter x=acount y=obsid / markerattrs=(size=0);    /* bottom axis line */
   x2axis min=0 max=&amp;amp;x2max grid display=(noticks nolabel) valueattrs=(size=9px);
   xaxis display=(noticks nolabel novalues);
   yaxis display=none reverse &lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;colorbands=odd colorbandsattrs=(transparency=1)&lt;/STRONG&gt; &lt;/U&gt;&lt;/EM&gt;
         thresholdmin=0 thresholdmax=0;
run;
ods rtf close;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Warren&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 10:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/403089#M13790</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-11T10:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot YAXISTABLE greater than or equal symbol</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/403091#M13791</link>
      <description>&lt;P&gt;Wonderful, thanks for the fast reply.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 10:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-YAXISTABLE-greater-than-or-equal-symbol/m-p/403091#M13791</guid>
      <dc:creator>DGrint</dc:creator>
      <dc:date>2017-10-11T10:47:59Z</dc:date>
    </item>
  </channel>
</rss>

