<?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 Legend of Reflabels in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48440#M1630</link>
    <description>Is there any way I can make a legend of reflabels in gplot?&lt;BR /&gt;
&lt;BR /&gt;
I am basically plotting my data of mean against date. But I have two reflabels, namely:&lt;BR /&gt;
**Current - Line type =1 ; colour = blue&lt;BR /&gt;
** Average - Line type =3; colour =red&lt;BR /&gt;
&lt;BR /&gt;
Is there anyway I can have this 2 lines (current and average) in my legend.&lt;BR /&gt;
&lt;BR /&gt;
Please help&lt;BR /&gt;
Really appreciate it. Thanks</description>
    <pubDate>Tue, 12 Apr 2011 09:51:42 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-04-12T09:51:42Z</dc:date>
    <item>
      <title>Legend of Reflabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48440#M1630</link>
      <description>Is there any way I can make a legend of reflabels in gplot?&lt;BR /&gt;
&lt;BR /&gt;
I am basically plotting my data of mean against date. But I have two reflabels, namely:&lt;BR /&gt;
**Current - Line type =1 ; colour = blue&lt;BR /&gt;
** Average - Line type =3; colour =red&lt;BR /&gt;
&lt;BR /&gt;
Is there anyway I can have this 2 lines (current and average) in my legend.&lt;BR /&gt;
&lt;BR /&gt;
Please help&lt;BR /&gt;
Really appreciate it. Thanks</description>
      <pubDate>Tue, 12 Apr 2011 09:51:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48440#M1630</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-12T09:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Legend of Reflabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48441#M1631</link>
      <description>One way would be to use annotate...&lt;BR /&gt;
&lt;BR /&gt;
Annotate the colored line segments (using 'move' and 'draw').&lt;BR /&gt;
And then annotate the descriptive text (using 'label').</description>
      <pubDate>Tue, 12 Apr 2011 11:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48441#M1631</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-04-12T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Legend of Reflabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48442#M1632</link>
      <description>I have already labelled the vref's using the reflabels. But because of the heavy data, its not showing properly. Even after using the function 'frontref'.&lt;BR /&gt;
&lt;BR /&gt;
Hence the reason why i was wondering if there is a way around where I can make legend which shows outside the graph...</description>
      <pubDate>Tue, 12 Apr 2011 12:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48442#M1632</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-12T12:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Legend of Reflabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48443#M1633</link>
      <description>As an alternative, if you have SAS 9.2, you can use PROC SGPLOT which give you the ability to directly associate reflines with the legend:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sgplot data=sashelp.class;&lt;BR /&gt;
scatter x=age y=weight;&lt;BR /&gt;
refline 90 / legendlabel="ninty pounds" name="a" lineattrs=(color=blue);&lt;BR /&gt;
refline 100 / legendlabel="one hundred pounds" name="b"  lineattrs=(color=red);&lt;BR /&gt;
keylegend "a" "b";&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps,&lt;BR /&gt;
Dan</description>
      <pubDate>Tue, 12 Apr 2011 12:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48443#M1633</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2011-04-12T12:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Legend of Reflabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48444#M1634</link>
      <description>Another way with gplot would be to create some data observations that will "look like" a reference line, such as...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data my_data; set sashelp.class;&lt;BR /&gt;
current=130;&lt;BR /&gt;
average=105;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
symbol1 value=dot color=black;&lt;BR /&gt;
symbol2 value=none interpol=line l=1 color=blue;&lt;BR /&gt;
symbol3 value=none interpol=line l=3 color=red;&lt;BR /&gt;
&lt;BR /&gt;
legend1 label=none position=(bottom center);&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=my_data;&lt;BR /&gt;
plot weight*height=1 current*height=2 average*height=3 / &lt;BR /&gt;
 overlay legend=legend1;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 12 Apr 2011 12:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48444#M1634</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-04-12T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Legend of Reflabels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48445#M1635</link>
      <description>Thanks to both DanH and Robert Allison&lt;BR /&gt;
&lt;BR /&gt;
Regards</description>
      <pubDate>Thu, 14 Apr 2011 08:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Legend-of-Reflabels/m-p/48445#M1635</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-14T08:38:49Z</dc:date>
    </item>
  </channel>
</rss>

