<?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: How to display the value from REFLINE in PROC SGPLOT. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/684986#M207687</link>
    <description>&lt;P&gt;You have not provided anything that might hold the value to the Label&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If &amp;amp;max is a single value then add that to the Label ="UL &amp;amp;max"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your &amp;amp;max is more than a single value then you need to describe things a bit better and may be better off adding some records to the data set with the values and having the variable containing the Refline values instead of a list, then use that or a variable build to hold the desired text in the Label= option.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 14:28:41 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-09-18T14:28:41Z</dc:date>
    <item>
      <title>How to display the value from REFLINE in PROC SGPLOT.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/684946#M207667</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I’m creating a plot (i.e. empirical density function) and I’m including a vertical line corresponding with a the cut-off value '&amp;amp;max' in the REFLINE statement (see code below).&lt;/P&gt;
&lt;P&gt;Nevertheless, the actual value is not displayed at the bottom of the line. Can you please let me know how can I do that?&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;A.G.&lt;/P&gt;
&lt;P&gt;proc sgplot data=dat cycleattrs ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; density &amp;amp;var/&amp;nbsp; LINEATTRS=(color=daolg)type=kernel(c=&lt;STRONG&gt;25&lt;/STRONG&gt;) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;scale=density freq=&amp;amp;weight &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;legendlabel="prior";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xaxis label="&amp;amp;label" min= &lt;STRONG&gt;0&lt;/STRONG&gt; max=&amp;amp;mx;&lt;/P&gt;
&lt;P&gt;yaxis label='Empirical density function(EDF)';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*Inserting cut-off values as vertical lines;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;refline &amp;amp;max / axis=x lineattrs=(thickness=&lt;/STRONG&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;STRONG&gt; color=darkred pattern=dash)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label=(&lt;/STRONG&gt;&lt;STRONG&gt;"UL"&lt;/STRONG&gt;&lt;STRONG&gt;);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 12:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/684946#M207667</guid>
      <dc:creator>alexgonzalez</dc:creator>
      <dc:date>2020-09-18T12:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the value from REFLINE in PROC SGPLOT.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/684986#M207687</link>
      <description>&lt;P&gt;You have not provided anything that might hold the value to the Label&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If &amp;amp;max is a single value then add that to the Label ="UL &amp;amp;max"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your &amp;amp;max is more than a single value then you need to describe things a bit better and may be better off adding some records to the data set with the values and having the variable containing the Refline values instead of a list, then use that or a variable build to hold the desired text in the Label= option.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/684986#M207687</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-18T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the value from REFLINE in PROC SGPLOT.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/684989#M207688</link>
      <description>Hi BallardW,&lt;BR /&gt;Thanks for your recommendation. &amp;amp;max is indeed a single value. I thought about that obtion, but I rather have the value displayed at the bottom of the X axis and at the top the label 'UL'. &lt;BR /&gt;Regards,&lt;BR /&gt;A.G.</description>
      <pubDate>Fri, 18 Sep 2020 14:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/684989#M207688</guid>
      <dc:creator>alexgonzalez</dc:creator>
      <dc:date>2020-09-18T14:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the value from REFLINE in PROC SGPLOT.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/685015#M207697</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/152501"&gt;@alexgonzalez&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi BallardW,&lt;BR /&gt;Thanks for your recommendation. &amp;amp;max is indeed a single value. I thought about that obtion, but I rather have the value displayed at the bottom of the X axis and at the top the label 'UL'. &lt;BR /&gt;Regards,&lt;BR /&gt;A.G.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As far as I know you only get one label position per refline. But I bet if you add a &lt;STRONG&gt;second&lt;/STRONG&gt; Refline statement with the LABELPOS=max (this is a standard parameter NOT your macro variable) and Label="&amp;amp;max" that you get what you want.&lt;/P&gt;
&lt;P&gt;You are drawing the same line twice with two different labels.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 15:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/685015#M207697</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-18T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the value from REFLINE in PROC SGPLOT.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/685032#M207704</link>
      <description>That worked perfectly.&lt;BR /&gt;Thanks again!</description>
      <pubDate>Fri, 18 Sep 2020 16:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-the-value-from-REFLINE-in-PROC-SGPLOT/m-p/685032#M207704</guid>
      <dc:creator>alexgonzalez</dc:creator>
      <dc:date>2020-09-18T16:45:37Z</dc:date>
    </item>
  </channel>
</rss>

