<?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: How to show name of a specific point on GPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-name-of-a-specific-point-on-GPLOT/m-p/246315#M8933</link>
    <description>&lt;P&gt;Firstly, I would stongly advise to move to sgplot or graph template language, they are far more controllable. &amp;nbsp;As I don't use gplot anymore - moved to modern tech, I can only advise using sgplot/gtl.&lt;/P&gt;
&lt;P&gt;What I would do is to create your graph, then have your point, defined in two seprate variables, and overlay that plot with marker labels turned on:&lt;/P&gt;
&lt;PRE&gt;data inter;
&amp;nbsp; set your_data;
&amp;nbsp; lab="MSFT";
&amp;nbsp; labx=0.08;
&amp;nbsp; laby=0.04;
run;
proc splot;
  ... your plots;
  scatter x=y=mpg_city /  group=type markerchar=lab;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;This does your graph, then overlays the scatter and places the text from LAB at the point LABX/LABY. &amp;nbsp;You can find plenty of examples of sgplot/gtl over at:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2016 09:57:08 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-01-27T09:57:08Z</dc:date>
    <item>
      <title>How to show name of a specific point on GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-name-of-a-specific-point-on-GPLOT/m-p/246308#M8932</link>
      <description>&lt;P&gt;Hello to whomever can help&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please see the following R program and its graph output:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;plot(ef, plot.assets=T)
points(gmin.port$sd, gmin.port$er, col="blue")
points(tan.port$sd, tan.port$er, col="red")
sr.tan = (tan.port$er - rk.free)/tan.port$sd
abline(a=rk.free, b=sr.tan)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1628i2817E8B03F2DE531/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;I can plot everything that on this R graph above on GPLOT except those names of points, MSFT, NORD and SBUX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what should I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is my GPLOT output and program. it does not have everything yet, such as title, but iknow how to put it up there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;goptions reset=all border;

symbol1 value=dot color=blue;
symbol2 value=none interpol=join color=green;
axis1 order=(0 to 0.09 by 0.01) offset=(0,0)
	major=(height=2)
	minor=(height=1);
axis2 order=(0 to 0.2 by 0.05) offset=(0,0)
	major=(height=2)
	minor=(height=1);

proc gplot data=proj.TanLine;
	plot ex_port_ret*port_sig=1
	 	 Ex_tan_ret*Tan_port_sig=2/overlay
								vaxis=axis1
								vminor=1
								haxis=axis2
								hminor=4
								vref=0.024891845;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1629i23C701808D441222/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 09:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-name-of-a-specific-point-on-GPLOT/m-p/246308#M8932</guid>
      <dc:creator>BingL</dc:creator>
      <dc:date>2016-01-27T09:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to show name of a specific point on GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-show-name-of-a-specific-point-on-GPLOT/m-p/246315#M8933</link>
      <description>&lt;P&gt;Firstly, I would stongly advise to move to sgplot or graph template language, they are far more controllable. &amp;nbsp;As I don't use gplot anymore - moved to modern tech, I can only advise using sgplot/gtl.&lt;/P&gt;
&lt;P&gt;What I would do is to create your graph, then have your point, defined in two seprate variables, and overlay that plot with marker labels turned on:&lt;/P&gt;
&lt;PRE&gt;data inter;
&amp;nbsp; set your_data;
&amp;nbsp; lab="MSFT";
&amp;nbsp; labx=0.08;
&amp;nbsp; laby=0.04;
run;
proc splot;
  ... your plots;
  scatter x=y=mpg_city /  group=type markerchar=lab;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;This does your graph, then overlays the scatter and places the text from LAB at the point LABX/LABY. &amp;nbsp;You can find plenty of examples of sgplot/gtl over at:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 09:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-show-name-of-a-specific-point-on-GPLOT/m-p/246315#M8933</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-27T09:57:08Z</dc:date>
    </item>
  </channel>
</rss>

