<?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 gplot and href in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-gplot-and-href/m-p/42795#M1369</link>
    <description>Hi Ashy,&lt;BR /&gt;
&lt;BR /&gt;
You can mention the href option in ur plot statement.&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=rays;&lt;BR /&gt;
plot y*x = rad /haxis=axis1 href='href-value;&lt;BR /&gt;
by name;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
But if you want to save the trouble of writing it for each name, then you can use a macro like following: &lt;BR /&gt;
&lt;BR /&gt;
%macro macro-name(href,name);&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=rays;&lt;BR /&gt;
plot y*x = rad /haxis=axis1 href=&amp;amp;href;&lt;BR /&gt;
by &amp;amp;name;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
%macro-name(href1,name1);&lt;BR /&gt;
%macro-name(href2,name2);&lt;BR /&gt;
And so on… &lt;BR /&gt;
&lt;BR /&gt;
But if you want the values to come out directly from the rays datasheet. Then you can use the symput function.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps!&lt;BR /&gt;
&lt;BR /&gt;
Let me know if you have anymore question on this

Message was edited by: neophyte</description>
    <pubDate>Thu, 07 Apr 2011 12:13:36 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-04-07T12:13:36Z</dc:date>
    <item>
      <title>proc gplot and href</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gplot-and-href/m-p/42793#M1367</link>
      <description>I'm trying to draw href lines on a set of plots.  The code I'm using for the plots is:&lt;BR /&gt;
&lt;BR /&gt;
 proc gplot data=rays;&lt;BR /&gt;
  plot y*x = rad /haxis=axis1;&lt;BR /&gt;
  by name;&lt;BR /&gt;
 run;&lt;BR /&gt;
&lt;BR /&gt;
This makes a plot for each name.  &lt;BR /&gt;
&lt;BR /&gt;
I would like to add href lines for each plot.  The location of the href line is unique for each name.  The locations are values in the dataset rays.  Is there an easy way to do this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Ashy</description>
      <pubDate>Fri, 01 Apr 2011 22:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gplot-and-href/m-p/42793#M1367</guid>
      <dc:creator>amm8</dc:creator>
      <dc:date>2011-04-01T22:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc gplot and href</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gplot-and-href/m-p/42794#M1368</link>
      <description>Hey Ashy,&lt;BR /&gt;
&lt;BR /&gt;
If you are running SAS 9.2, you can do this easily with PROC SGPLOT. This procedure supports variables on the REFLINE statement. Here is an example using your variables:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sgplot data=rays;&lt;BR /&gt;
refline ref_value_column;&lt;BR /&gt;
scatter x=x y=y / group=rad;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Let me know if you have any other questions about this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Dan</description>
      <pubDate>Sat, 02 Apr 2011 04:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gplot-and-href/m-p/42794#M1368</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2011-04-02T04:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc gplot and href</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gplot-and-href/m-p/42795#M1369</link>
      <description>Hi Ashy,&lt;BR /&gt;
&lt;BR /&gt;
You can mention the href option in ur plot statement.&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=rays;&lt;BR /&gt;
plot y*x = rad /haxis=axis1 href='href-value;&lt;BR /&gt;
by name;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
But if you want to save the trouble of writing it for each name, then you can use a macro like following: &lt;BR /&gt;
&lt;BR /&gt;
%macro macro-name(href,name);&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=rays;&lt;BR /&gt;
plot y*x = rad /haxis=axis1 href=&amp;amp;href;&lt;BR /&gt;
by &amp;amp;name;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%mend;&lt;BR /&gt;
%macro-name(href1,name1);&lt;BR /&gt;
%macro-name(href2,name2);&lt;BR /&gt;
And so on… &lt;BR /&gt;
&lt;BR /&gt;
But if you want the values to come out directly from the rays datasheet. Then you can use the symput function.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps!&lt;BR /&gt;
&lt;BR /&gt;
Let me know if you have anymore question on this

Message was edited by: neophyte</description>
      <pubDate>Thu, 07 Apr 2011 12:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gplot-and-href/m-p/42795#M1369</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-04-07T12:13:36Z</dc:date>
    </item>
  </channel>
</rss>

