<?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 Unicode in HREFLABEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871440#M344253</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I created a Histogram with a reference line in Proc Univariate. Now I am trying to add the lower case Greek letter "alpha" to the reference line with the following command: &amp;nbsp;hreflabel="^{unicode alpha}=.05";&amp;nbsp; However, the label is the text string " ^{unicode alpha}" with no number nor Greek letter.&amp;nbsp; I tried other Unicode commands like&amp;nbsp;&lt;SPAN&gt;03B1 but same result. Thanks in advance for any help you can offer.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Apr 2023 17:14:22 GMT</pubDate>
    <dc:creator>ekomaroff</dc:creator>
    <dc:date>2023-04-23T17:14:22Z</dc:date>
    <item>
      <title>Unicode in HREFLABEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871440#M344253</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I created a Histogram with a reference line in Proc Univariate. Now I am trying to add the lower case Greek letter "alpha" to the reference line with the following command: &amp;nbsp;hreflabel="^{unicode alpha}=.05";&amp;nbsp; However, the label is the text string " ^{unicode alpha}" with no number nor Greek letter.&amp;nbsp; I tried other Unicode commands like&amp;nbsp;&lt;SPAN&gt;03B1 but same result. Thanks in advance for any help you can offer.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 17:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871440#M344253</guid>
      <dc:creator>ekomaroff</dc:creator>
      <dc:date>2023-04-23T17:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in HREFLABEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871541#M344301</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.heart;
histogram weight;
refline 250/axis=x label="(*ESC*){unicode alpha}=.05";
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-1682336539343.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83086i0D9496E6DB09FF0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1682336539343.png" alt="Ksharp_0-1682336539343.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 11:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871541#M344301</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-04-24T11:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in HREFLABEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871559#M344309</link>
      <description>Yes, thank you. I knew how to add Unicode symbols to "Label" statements in general. Here, I want to get it working in "HREFLABEL" statement in the Histogram from Proc Univariate. I have a few good reasons for working with the Univariate histogram, instead of the SGPLOT histogram. If it is not possible, then I will simply put "alpha" in Roman letters but would prefer the Greek lowercase letter.&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Apr 2023 12:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871559#M344309</guid>
      <dc:creator>ekomaroff</dc:creator>
      <dc:date>2023-04-24T12:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in HREFLABEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871576#M344319</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185083"&gt;@ekomaroff&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Writing 'a' with the &lt;EM&gt;Symbol&lt;/EM&gt; font results in '&lt;FONT face="symbol"&gt;a&lt;/FONT&gt;':&lt;/P&gt;
&lt;PRE&gt;proc univariate data=sashelp.heart;
var weight;
histogram / href=250 hreflabel='a=.05' &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;infont='Symbol'&lt;/STRONG&gt;&lt;/FONT&gt;;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871576#M344319</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-04-24T13:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in HREFLABEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871583#M344323</link>
      <description>Brilliant, thank you! One more puzzle please. With your solution the label appears to the left of the reference line. Is there an option to get the label to the right of the reference line?&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871583#M344323</guid>
      <dc:creator>ekomaroff</dc:creator>
      <dc:date>2023-04-24T13:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in HREFLABEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871592#M344327</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185083"&gt;@ekomaroff&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;With your solution the label appears to the left of the reference line. Is there an option to get the label to the right of the reference line?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Using my (or rather &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408" target="_blank" rel="noopener"&gt;Ksharp&lt;/A&gt;'s)&amp;nbsp;&lt;FONT face="courier new,courier"&gt;sashelp.heart&lt;/FONT&gt; example I get the label to the right of the reference line, which seems to be the default position. However, if I move the reference line far to the right (&lt;FONT face="courier new,courier"&gt;href=&lt;STRONG&gt;300&lt;/STRONG&gt;&lt;/FONT&gt;), the label position switches to the left of the line, apparently because now there's not enough space on the other side. After creating sufficient space by adding an AXIS statement (to add one tick mark &amp;gt;300),&lt;/P&gt;
&lt;PRE&gt;axis1 order=(70 to &lt;STRONG&gt;310&lt;/STRONG&gt; by 10);&lt;/PRE&gt;
&lt;P&gt;which I refer to in the HISTOGRAM statement options,&lt;/P&gt;
&lt;PRE&gt;histogram / href=300 hreflabel='a=.05' &lt;STRONG&gt;haxis=axis1&lt;/STRONG&gt; infont='Symbol';&lt;/PRE&gt;
&lt;P&gt;the label moves back to the right of the reference line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871592#M344327</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-04-24T14:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in HREFLABEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871599#M344332</link>
      <description>I very much appreciate your effort, time and expert help. However, after I posted the question, I played around with more options (below) and the label moved to the right. Mysterious, but this is a one-off project so am very happy now. Working with you has made my day! Thanks again.&lt;BR /&gt;&lt;BR /&gt;hreflabel='a = .05' infont='Symbol' LHREF=3 HREFLABPOS=1 chref = bio;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871599#M344332</guid>
      <dc:creator>ekomaroff</dc:creator>
      <dc:date>2023-04-24T14:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode in HREFLABEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871640#M344366</link>
      <description>&lt;P&gt;In general I consider the analysis procs as exploratory when it comes to graphics. If I want a specific appearance then it usually much quicker to export the needed data from the procedure and use a dedicated procedure such as Sgplot or Sgpanel to create a desired appearance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the plots as part of analysis procedures have very few elements that you can control with options in the procedure and you can spend a lot of time playing with stuff and never get what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that SGPLOT has a HISTOGRAM statement, so Univariate may not even be needed but might reduce the time "guessing" about likely bid widths or axis ranges.&lt;/P&gt;
&lt;P&gt;The REFLINE statement in SGPLOT lets place labels inside or outside of the plot area, LABELLOC, and on the minimum or maximum value of the axis (left right when horizontal, top bottom when vertical) with LABELPOS. You also have more control over line and text appearance.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unicode-in-HREFLABEL/m-p/871640#M344366</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-24T15:39:34Z</dc:date>
    </item>
  </channel>
</rss>

