<?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: Popup with Reference Line GPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481512#M124564</link>
    <description>&lt;P&gt;I'm not sure if this works with PROC GPLOT, but with PROC SGPLOT you can use the IMAGEMAP Option to the ODS Graphics statement like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / imagemap;
proc sgplot data=sashelp.class;
   scatter x=height y=weight;
   refline 60 / axis=x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Jul 2018 14:13:00 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-07-26T14:13:00Z</dc:date>
    <item>
      <title>Popup with Reference Line GPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481504#M124560</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if it's possible to display a popup window while hovering the graph with the mouse on a reference line on a Gplot (it is essential that I continue with a Gplot).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code and my graph:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; catx(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'"'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,Name,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'"'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ListName &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; :NameRefline separated by &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;" "&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sashelp.class &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Height GT &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;65&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;NameRefline;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;goptions&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;xpixels&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1200&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ypixels&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;675&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;gplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=SASHELP.CLASS;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;plot&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Name*Height=Sex / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;vref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&amp;amp;NameRefline &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;cvref&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=orange;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="class.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22046i4B256F0D4AA026DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="class.png" alt="class.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea here is to show the &lt;STRONG&gt;Weight&amp;nbsp;&lt;/STRONG&gt;of the people with the refline in a popup. I don't want to put it on the graph because the graph will be difficult to read. I hope I'm clear enough. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 13:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481504#M124560</guid>
      <dc:creator>Suzanevara</dc:creator>
      <dc:date>2018-07-26T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with Reference Line GPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481512#M124564</link>
      <description>&lt;P&gt;I'm not sure if this works with PROC GPLOT, but with PROC SGPLOT you can use the IMAGEMAP Option to the ODS Graphics statement like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on / imagemap;
proc sgplot data=sashelp.class;
   scatter x=height y=weight;
   refline 60 / axis=x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481512#M124564</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-26T14:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with Reference Line GPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481513#M124565</link>
      <description>&lt;P&gt;Also, why is it essential that you continue with a GPLOT? Almost everyone in here will advise you to use the newer PROC SGPLOT?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481513#M124565</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-26T14:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with Reference Line GPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481514#M124566</link>
      <description>&lt;P&gt;I am not aware of any way to produce tool-tips for reference lines using GPLOT, nor am I aware of any way to produce tool-tips for reference lines using the annotate facility. You could&amp;nbsp;create a tool-tip for the data point (not the reference line).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, I must ask ... why does the solution have to be a tool-tip (or pop-up as you call it)? Why not do a bubble plot which shows the weight instead of a regular scatterplot?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481514#M124566</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-26T14:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with Reference Line GPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481516#M124567</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Also, why is it essential that you continue with a GPLOT? Almost everyone in here will advise you to use the newer PROC SGPLOT?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why? Because this is the second almost identical question today about GPLOT (&lt;A href="https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/PROC-GPLOT-and-popup/m-p/481460#M16627" target="_blank"&gt;https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/PROC-GPLOT-and-popup/m-p/481460#M16627&lt;/A&gt;) by two different people, strongly suggesting this is a homework assignment.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481516#M124567</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-26T14:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with Reference Line GPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481517#M124568</link>
      <description>&lt;P&gt;Strong reasoning indeed&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481517#M124568</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-26T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with Reference Line GPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481524#M124572</link>
      <description>&lt;P&gt;Why a Gplot because at work I use a project with a lot of macros and it generates&amp;nbsp;lots of&amp;nbsp;graphs automatically. We cannot change right now the way we work.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481524#M124572</guid>
      <dc:creator>Suzanevara</dc:creator>
      <dc:date>2018-07-26T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with Reference Line GPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481529#M124575</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223090"&gt;@Suzanevara&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Why a Gplot because at work I use a project with a lot of macros and it generates&amp;nbsp;lots of&amp;nbsp;graphs automatically. We cannot change right now the way we work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ok, then suggestions were given above about other solutions using GPLOT than a pop-up on a reference line, which is not possible as far as I know.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Popup-with-Reference-Line-GPLOT/m-p/481529#M124575</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-07-26T14:34:33Z</dc:date>
    </item>
  </channel>
</rss>

