<?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 highlight an individual data point in a sgplot scatter plot? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-highlight-an-individual-data-point-in-a-sgplot-scatter/m-p/275693#M58585</link>
    <description>&lt;P&gt;If you are not already using groups, you can put that point in a separate group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the simplest way is to create a new variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data newData;&lt;/P&gt;
&lt;P&gt;set myData;&lt;/P&gt;
&lt;P&gt;if case = somethingSpecial then ySpecial = y;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=newData;&lt;/P&gt;
&lt;P&gt;scatter x=x y=y;&lt;/P&gt;
&lt;P&gt;scatter x=x y=ySpecial / markerAttrs=(color=red);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also use SG annotation, but that's probably too much trouble.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2016 14:54:56 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-06-07T14:54:56Z</dc:date>
    <item>
      <title>How to highlight an individual data point in a sgplot scatter plot?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-highlight-an-individual-data-point-in-a-sgplot-scatter/m-p/275662#M58583</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I was wondering how you could highlight a specific data point in a scatter plot of SGPLOT. &amp;nbsp;I can individual label the data points using data steps, but there are too many data points in the plot to use it. &amp;nbsp;I would like to be able to make this individual symbol either bold, filled, a differen't color, or do something else to make it stand out.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Jeff S. O.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 13:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-highlight-an-individual-data-point-in-a-sgplot-scatter/m-p/275662#M58583</guid>
      <dc:creator>Jolly</dc:creator>
      <dc:date>2016-06-07T13:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight an individual data point in a sgplot scatter plot?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-highlight-an-individual-data-point-in-a-sgplot-scatter/m-p/275693#M58585</link>
      <description>&lt;P&gt;If you are not already using groups, you can put that point in a separate group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the simplest way is to create a new variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data newData;&lt;/P&gt;
&lt;P&gt;set myData;&lt;/P&gt;
&lt;P&gt;if case = somethingSpecial then ySpecial = y;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=newData;&lt;/P&gt;
&lt;P&gt;scatter x=x y=y;&lt;/P&gt;
&lt;P&gt;scatter x=x y=ySpecial / markerAttrs=(color=red);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also use SG annotation, but that's probably too much trouble.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 14:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-highlight-an-individual-data-point-in-a-sgplot-scatter/m-p/275693#M58585</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-07T14:54:56Z</dc:date>
    </item>
  </channel>
</rss>

