<?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: Proc sgplot refline label in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598430#M16289</link>
    <description>&lt;P&gt;Thanks, ballardw.&amp;nbsp;Text plot&amp;nbsp;is much easier than annotation in this case for me at least. I really appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 15:28:03 GMT</pubDate>
    <dc:creator>liangjz</dc:creator>
    <dc:date>2019-10-22T15:28:03Z</dc:date>
    <item>
      <title>Proc sgplot refline label</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598194#M16263</link>
      <description>&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;create table myclass as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;select age,height,mean(height) as mHeight&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;from sashelp.class&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sgplot&lt;/STRONG&gt; data=myclass;&lt;/P&gt;&lt;P&gt;&amp;nbsp; scatter x=age y=height;&lt;/P&gt;&lt;P&gt;&amp;nbsp; refline &lt;STRONG&gt;14&lt;/STRONG&gt; /axis=x labelloc=inside &amp;nbsp;label="The Reference Line" lineattrs=(color=green);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to&amp;nbsp;change the label “&lt;/STRONG&gt;&lt;STRONG&gt;The reference Line” from horizontal to vertical?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 17:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598194#M16263</guid>
      <dc:creator>liangjz</dc:creator>
      <dc:date>2019-10-21T17:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot refline label</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598222#M16266</link>
      <description>&lt;P&gt;I can't find any option to rotate the label. SG-Annotation is the next best thing, but rather clumsy. You might also consider a compromise such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=myclass;
  scatter x=age y=height;
  refline 14 /axis=x labelloc=inside  label="Reference/Line"  
  	lineattrs=(color=green) labelpos=min splitchar="/";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;after all, horizontal is always easier to read.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598222#M16266</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-10-21T19:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot refline label</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598249#M16270</link>
      <description>&lt;P&gt;Hi PG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the info you posted -- agreed with you, with splitting label, it is nice. I don't have to use annotation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 20:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598249#M16270</guid>
      <dc:creator>liangjz</dc:creator>
      <dc:date>2019-10-21T20:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot refline label</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598266#M16274</link>
      <description>&lt;P&gt;Or add a data point or two and use a TEXT plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
create table work.myclass as
   select age,height,mean(height) as mHeight
   from sashelp.class
;
quit;
data work.label;
   age=14.2;
   y=70;
   Labeltext= "The Reference Line";
run;
 
data work.plot;
   set work.myclass
       work.label;
run;
proc sgplot data=work.plot;
  scatter x=age y=height/ name='scatter';
  refline 14 /axis=x labelloc=inside  label="" lineattrs=(color=green);
  text x=age y=y text=labeltext /rotate=90 name='text';

  keylegend 'scatter';

run;
&lt;/PRE&gt;
&lt;P&gt;Changing the Rotate angle to =90 will make it read from top to bottom. Adjust the x and y coordinates to be "nice". There are also some text appearance options available with a Text plot, such as BACKLIGHT not available&amp;nbsp;in REFLINE.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 20:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598266#M16274</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-21T20:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sgplot refline label</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598430#M16289</link>
      <description>&lt;P&gt;Thanks, ballardw.&amp;nbsp;Text plot&amp;nbsp;is much easier than annotation in this case for me at least. I really appreciate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 15:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-sgplot-refline-label/m-p/598430#M16289</guid>
      <dc:creator>liangjz</dc:creator>
      <dc:date>2019-10-22T15:28:03Z</dc:date>
    </item>
  </channel>
</rss>

