<?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: Positioning labels on Refline PROC SGPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902906#M356831</link>
    <description>Thanks! With setting one to MAX and the other to MIN. The 50 refline still runs through the 40 refline label.&lt;BR /&gt;&lt;BR /&gt;Does X and Y have to be numeric?&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Nov 2023 02:17:26 GMT</pubDate>
    <dc:creator>Jepi</dc:creator>
    <dc:date>2023-11-14T02:17:26Z</dc:date>
    <item>
      <title>Positioning labels on Refline PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902877#M356818</link>
      <description>Hi I am using PROC SGPLOT and have two reference lines (one at 40 and one at 50). Refline 40/axis=y Label = “Midterm” labelloc=inside labelpos=min;&lt;BR /&gt;Refline 50/axis=y Label = “Second Semester” labelloc=inside labelpos=min;&lt;BR /&gt;&lt;BR /&gt;The problem I'm running into is the labels are overlapping. I want to position the label at 40 below the reference line and the label at 50 above its reference line.&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Nov 2023 22:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902877#M356818</guid>
      <dc:creator>Jepi</dc:creator>
      <dc:date>2023-11-13T22:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Positioning labels on Refline PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902883#M356823</link>
      <description>&lt;P&gt;Easiest is just to change the LabelPos to one of of those to be MAX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to explicitly control the location of text I suggest adding observations to your data set to allow use of a TEXT plot statement with the X, Y location and a variable to hold the text. Then do not include a label on the line at all.&amp;nbsp; The Text plot would allow a few more options for displaying the text.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 22:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902883#M356823</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-11-13T22:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Positioning labels on Refline PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902906#M356831</link>
      <description>Thanks! With setting one to MAX and the other to MIN. The 50 refline still runs through the 40 refline label.&lt;BR /&gt;&lt;BR /&gt;Does X and Y have to be numeric?&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Nov 2023 02:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902906#M356831</guid>
      <dc:creator>Jepi</dc:creator>
      <dc:date>2023-11-14T02:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Positioning labels on Refline PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902998#M356849</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/161691"&gt;@Jepi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks! With setting one to MAX and the other to MIN. The 50 refline still runs through the 40 refline label.&lt;BR /&gt;&lt;BR /&gt;Does X and Y have to be numeric?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now we are at the point where you should provide an example of the data set you are using for proc sgplot and the entire code of the Sgplot used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refline values do not have to be numeric but if you are using a character value for the line that it is not one of the actual values results are at best unpredictable and likely to not appear at all.&lt;/P&gt;
&lt;P&gt;Example of a not very useful graph but shows use of text values for refline when the axis is character:&lt;/P&gt;
&lt;PRE&gt;Proc sgplot data=sashelp.cars;
   scatter x=make y=type;
   refline 'Isuzu' /axis=x  ;
   refline 'Sedan' /axis=y ;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2023 16:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Positioning-labels-on-Refline-PROC-SGPLOT/m-p/902998#M356849</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-11-14T16:03:00Z</dc:date>
    </item>
  </channel>
</rss>

