<?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: Highlight a point in the SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330091#M11526</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SGPLOT DATA=plot_table noautolegend;
STYLEATTRS datacontrastcolors=(BIB RED);
SERIES X=store_name Y=sales/ lineattrs=(color=BIB pattern=3) markers markerattrs=(size=8 symbol=Square) group=Indicator;
 
TITLE "Store Sales";
YAXIS LABEL="Sales";
XAXIS LABEL="Store Name";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 Feb 2017 04:06:00 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2017-02-06T04:06:00Z</dc:date>
    <item>
      <title>Highlight a point in the SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330070#M11525</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on a SG plot as shown below. I want to highlight a particular sale value based on a business condition. The data set Plot_table is shown below. Sales value with Indicator value 'Y' should be highlighted in a different color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=plot_table;&lt;BR /&gt; SERIES X=store_name Y=sales/ lineattrs=(color=BIB pattern=3) legendlabel='Store Name' markers markerattrs=(color=BIB size=8 symbol=Square);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TITLE "Store Sales";&lt;BR /&gt; YAXIS LABEL="Sales";&lt;BR /&gt; XAXIS LABEL="Store Name";&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Store_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sales &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Indicator&lt;/P&gt;
&lt;P&gt;========================================&lt;/P&gt;
&lt;P&gt;A &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;1000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;A &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;2000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A &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;3000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;/P&gt;
&lt;P&gt;A &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;4000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 23:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330070#M11525</guid>
      <dc:creator>KrisNori</dc:creator>
      <dc:date>2017-02-05T23:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight a point in the SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330091#M11526</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SGPLOT DATA=plot_table noautolegend;
STYLEATTRS datacontrastcolors=(BIB RED);
SERIES X=store_name Y=sales/ lineattrs=(color=BIB pattern=3) markers markerattrs=(size=8 symbol=Square) group=Indicator;
 
TITLE "Store Sales";
YAXIS LABEL="Sales";
XAXIS LABEL="Store Name";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Feb 2017 04:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330091#M11526</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-02-06T04:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight a point in the SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330227#M11535</link>
      <description>&lt;P&gt;For this case, you will want to plot the scatter points separately from the series plot so that you can group the scatter points based on the "indicator".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SGPLOT DATA=plot_table;
SERIES X=store_name Y=sales/ lineattrs=(color=BIB pattern=3) legendlabel='Store Name' );
SCATTER X=store_name Y=sales/ markerattrs=(size=8 symbol=Square) group=indicator;
 
TITLE "Store Sales";
YAXIS LABEL="Sales";
XAXIS LABEL="Store Name";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330227#M11535</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-02-06T16:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight a point in the SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330241#M11536</link>
      <description>&lt;P&gt;Hi PG Stats,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It didn't work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I tried some thing else using proc template. It changed the appearance&amp;nbsp;of the marker (Square with circle inside it for Indicator and Square with&amp;nbsp;&lt;SPAN&gt;¥ inside it for others), not the color. But that's hardly noticeable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's my first time using SGPLOT, so pls ignore if something looks redundant.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; PROC template;&lt;BR /&gt; DEFINE style styles.symbols;&lt;BR /&gt; parent=styles.default;&lt;BR /&gt; style graphdata1 /&lt;BR /&gt; contrastcolor=blue;&lt;BR /&gt; style graphdata2 /&lt;BR /&gt; contrastcolor=red;&lt;BR /&gt; end;&lt;BR /&gt; RUN;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGPLOT DATA=plot_table;&lt;BR /&gt;SERIES X=store_name Y=sales/ lineattrs=(color=BIB pattern=3) legendlabel='Store Name' markers markerattrs=(color=BIB size=8 symbol=Square);&lt;/P&gt;
&lt;P&gt;scatter x=store_name Y=sales/Group= Indicator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TITLE "Store Sales";&lt;BR /&gt;YAXIS LABEL="Sales";&lt;BR /&gt;XAXIS LABEL="Store Name";&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Highlight-a-point-in-the-SGPLOT/m-p/330241#M11536</guid>
      <dc:creator>KrisNori</dc:creator>
      <dc:date>2017-02-06T16:59:05Z</dc:date>
    </item>
  </channel>
</rss>

