<?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: scatter plot with line of equality and observations with labels in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159763#M5995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using sgplot you can use the datalabel option to specify a variable that contains a label. This all depends on how your data is set up of course:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; temp;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;do&lt;/SPAN&gt; i=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;x_ref=i; y_ref=i;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;output&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;end&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; class;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;set&lt;/SPAN&gt; sashelp.class temp;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;scatter&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;x&lt;/SPAN&gt;=height &lt;SPAN style="color: #0433ff;"&gt;y&lt;/SPAN&gt;=weight/&lt;SPAN style="color: #0433ff;"&gt;datalabel&lt;/SPAN&gt;=name;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;series&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;x&lt;/SPAN&gt;=x_ref &lt;SPAN style="color: #0433ff;"&gt;y&lt;/SPAN&gt;=y_ref;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;xaxis&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;min&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;max&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;yaxis&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;min&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;max&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 04:46:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-12-22T04:46:10Z</dc:date>
    <item>
      <title>scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159762#M5994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm a bit of a newbie to SAS trying to create a scatter plot that would include the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a line of equality (i.e. a diagonal line showing points where X=Y)&lt;/LI&gt;&lt;LI&gt;data labels for individual observations&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An early version of the chart is shown below? I found some example code showing how to do the diagonal line using proc gplot but was not able to figure out how to do the data labels. What would be the most effective way of doing this? Would I use proc sgcatter, proc sgplot or proc gplot? Would anyone be able to provide some example code showing how to do both using the same proc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Chart.bmp" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8531_Chart.bmp" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 04:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159762#M5994</guid>
      <dc:creator>sun014</dc:creator>
      <dc:date>2014-12-22T04:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159763#M5995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using sgplot you can use the datalabel option to specify a variable that contains a label. This all depends on how your data is set up of course:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; temp;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;do&lt;/SPAN&gt; i=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;to&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;x_ref=i; y_ref=i;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;output&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;end&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; class;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;set&lt;/SPAN&gt; sashelp.class temp;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;scatter&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;x&lt;/SPAN&gt;=height &lt;SPAN style="color: #0433ff;"&gt;y&lt;/SPAN&gt;=weight/&lt;SPAN style="color: #0433ff;"&gt;datalabel&lt;/SPAN&gt;=name;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;series&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;x&lt;/SPAN&gt;=x_ref &lt;SPAN style="color: #0433ff;"&gt;y&lt;/SPAN&gt;=y_ref;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;xaxis&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;min&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;max&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;yaxis&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;min&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;max&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 04:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159763#M5995</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-22T04:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159764#M5996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And with SAS 9.3 or later, you can use the LINEPARM statement to draw the 45 degree reference line:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LINEPARM x=0 y=0 slope=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line is drawn for the full data range determined by the other plots in the proc.&amp;nbsp; See doc for the details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 04:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159764#M5996</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-12-22T04:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159765#M5997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something new &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That makes it much simpler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=sashelp.class;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;scatter&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;x&lt;/SPAN&gt;=height &lt;SPAN style="color: #0433ff;"&gt;y&lt;/SPAN&gt;=weight/&lt;SPAN style="color: #0433ff;"&gt;datalabel&lt;/SPAN&gt;=name;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #ff2600;"&gt;lineparm&lt;/SPAN&gt; x=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; y=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; slope=&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;xaxis&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;min&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;max&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;yaxis&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;min&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;max&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;150&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 05:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159765#M5997</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-22T05:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159766#M5998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza, Sanjay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason lineparm statement doesn't work for me in sgplot (Error message: Statement is not valid or it is used out of proper order). Is there some general declaration that I need to do before using it? I'm using SAS EG 4.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 16:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159766#M5998</guid>
      <dc:creator>sun014</dc:creator>
      <dc:date>2014-12-22T16:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159767#M5999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EG 4.3 corresponds to SAS 9.1, LINEPARM is a feature of SAS 9.2 as indicated by Sanjay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 16:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159767#M5999</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-22T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159768#M6000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this Refline Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;do i=1 to 150;&lt;BR /&gt;x_ref=i; y_ref=i;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data class;&lt;BR /&gt;set sashelp.class temp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=class;&lt;BR /&gt;scatter x=height y=weight/datalabel=name;&lt;BR /&gt;refline 0 / axis = y;&lt;BR /&gt;xaxis min=0 max=150;&lt;BR /&gt;yaxis min=0 max=150;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 16:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159768#M6000</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2014-12-22T16:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159769#M6001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, for some reason I thought you wanted a horizontal line. If you want a 45 degree line, then you can also you the VECTOR statement in SAS 9.2 onwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data temp;&lt;BR /&gt;do i=1 to 150;&lt;BR /&gt;x_ref=i; y_ref=i;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data class;&lt;BR /&gt;set sashelp.class temp;&lt;BR /&gt;y = 150;&lt;BR /&gt;x = 150;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data=class;&lt;BR /&gt;scatter x=height y=weight/datalabel=name;&lt;BR /&gt;vector x = x y = y / noarrowhead yorigin = 0 xorigin = 0;&lt;BR /&gt;xaxis min=0 max=150;&lt;BR /&gt;yaxis min=0 max=150;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 17:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159769#M6001</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2014-12-22T17:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159770#M6002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that works.&lt;/P&gt;&lt;P&gt;I guess you meant to write vector x = x_ref y = y_ref / noarrowhead yorigin = 0 xorigin = 0;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 19:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159770#M6002</guid>
      <dc:creator>sun014</dc:creator>
      <dc:date>2014-12-22T19:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159771#M6003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, glad to hear that it worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why I wrote "vector x = x y = y" is because I wanted the diagonal line to end at 150 on the x and y axis. As you've noticed though you can also use x_ref and y_ref and the advantange of that is you do not have to create additional variables as I previously did. That's actually good for me to know, because I didn't know that before! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 21:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159771#M6003</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2014-12-22T21:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: scatter plot with line of equality and observations with labels</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159772#M6004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to add labels to the plot markers would be to use the pointlabel= option of the symbol statement. &lt;/P&gt;&lt;P&gt;This should work in SAS 9.1.&amp;nbsp; Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=circle height=2 interpol=none pointlabel=('#name');&lt;/P&gt;&lt;P&gt;proc gplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;plot height*weight=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pointlabel.png" class="jive-image-thumbnail jive-image" height="557" src="https://communities.sas.com/legacyfs/online/8800_pointlabel.png" style="height: 557px; width: 743.768545994065px;" width="744" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 18:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/scatter-plot-with-line-of-equality-and-observations-with-labels/m-p/159772#M6004</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2015-01-20T18:59:40Z</dc:date>
    </item>
  </channel>
</rss>

