<?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 Marking outlier names on graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39899#M1260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to selectively label certain outliers is to selectively assign text to a variable, &lt;/P&gt;&lt;P&gt;and then use that variable as the 'pointlabel' (assuming you're using a fairly recent &lt;/P&gt;&lt;P&gt;release of SAS)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data foo; set sashelp.class;&lt;BR /&gt;if height&amp;gt;=67 then outlier_text=trim(left(height));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=dot interpol=none pointlabel=("#outlier_text");&lt;/P&gt;&lt;P&gt;proc gplot data=foo;&lt;BR /&gt;plot height*weight;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 13:27:02 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2011-11-02T13:27:02Z</dc:date>
    <item>
      <title>Marking outlier names on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39898#M1259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to make a graph by 2 variables, create different colour labels for 3 different groups and be able to marke some specific observations (like outliers) in final graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="LT" style="font-family: 'SAS Monospace'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; proc gplot data=mydata; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="LT" style="font-family: 'SAS Monospace'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; plot var2*var1=groupname/frame cframe=ligr &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="LT" style="font-family: 'SAS Monospace'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legend=legend1 vaxis=axis1 haxis=axis2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="LT" style="font-family: 'SAS Monospace'; color: black; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="LT" style="font-family: 'SAS Monospace'; color: black; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="LT" style="font-family: arial,helvetica,sans-serif; color: black; font-size: 10pt;"&gt;What I get what I need - values of those 2 variables by &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;group names, but I can’t understand is there any possibility to mark in the graph which are those outlying observations?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;I would appreciate if somebody of you could help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-family: Arial; font-size: 10pt;"&gt;Ieva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 08:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39898#M1259</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-11-02T08:01:49Z</dc:date>
    </item>
    <item>
      <title>Marking outlier names on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39899#M1260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to selectively label certain outliers is to selectively assign text to a variable, &lt;/P&gt;&lt;P&gt;and then use that variable as the 'pointlabel' (assuming you're using a fairly recent &lt;/P&gt;&lt;P&gt;release of SAS)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data foo; set sashelp.class;&lt;BR /&gt;if height&amp;gt;=67 then outlier_text=trim(left(height));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=dot interpol=none pointlabel=("#outlier_text");&lt;/P&gt;&lt;P&gt;proc gplot data=foo;&lt;BR /&gt;plot height*weight;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 13:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39899#M1260</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-11-02T13:27:02Z</dc:date>
    </item>
    <item>
      <title>Marking outlier names on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39900#M1261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you for suggestion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.1.3. When running your code I get labels for all observations. And when I try to change outlier_text to variable name (not height) also nothing is changing. Is my SAS version too old for this? &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 08:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39900#M1261</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-11-03T08:37:38Z</dc:date>
    </item>
    <item>
      <title>Marking outlier names on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39901#M1262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS 9.1.3 is over 7 years old &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; but I tried both of those things in it just now, and they both work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible you're using device=java or device=activex ?&lt;/P&gt;&lt;P&gt;They only have "partial support" of a lot of the features like pointlabel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 12:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39901#M1262</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-11-03T12:07:01Z</dc:date>
    </item>
    <item>
      <title>Marking outlier names on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39902#M1263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, then it is because device=activex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 12:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39902#M1263</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-11-03T12:14:08Z</dc:date>
    </item>
    <item>
      <title>Marking outlier names on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39903#M1264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also mark outliers in a scatter plot by using ODS statistical graphics (the SGPLOT procedure). See &lt;A href="http://blogs.sas.com/content/iml/2011/11/11/label-only-certain-observations-with-proc-sgplot/"&gt;http://blogs.sas.com/content/iml/2011/11/11/label-only-certain-observations-with-proc-sgplot/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 15:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39903#M1264</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2011-11-11T15:36:00Z</dc:date>
    </item>
    <item>
      <title>Marking outlier names on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39904#M1265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you! This seems as a good, simple aproach!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 07:11:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39904#M1265</guid>
      <dc:creator>ieva</dc:creator>
      <dc:date>2011-11-14T07:11:51Z</dc:date>
    </item>
    <item>
      <title>Marking outlier names on graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39905#M1266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to have more control over your graph, try the annotate facility:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table anno as select '2' as xsys, '2' as ysys, height as y, weight as x, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; name as text, 'label' as function,'"Arial"' as style, 'red' as color, '3' as position &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from sashelp.class &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; having height not between avg(height)-2*std(height) and avg(height)+2*std(height) ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ods html body='c:\temp\myGraph.html';&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;goptions dev=activex;&lt;/P&gt;&lt;P&gt;proc gplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;plot height*weight / anno=anno;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;P&gt;ods html close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 12:11:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Marking-outlier-names-on-graph/m-p/39905#M1266</guid>
      <dc:creator>Alfredo</dc:creator>
      <dc:date>2012-01-18T12:11:19Z</dc:date>
    </item>
  </channel>
</rss>

