<?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: Change the symbol/sings in scatter plot that grouped by class in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-To-Change-the-symbol-sings-in-scatter-plot-that-grouped-by/m-p/640219#M190630</link>
    <description>&lt;P&gt;Issue Resolved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used below refer code to fix my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE class="text"&gt;ods graphics on / attrpriority=color;
proc sgplot data=sashelp.iris aspect=1;
   scatter x=petalwidth y=sepalwidth / group=species;
   keylegend / location=outside position=right across=1;
run;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="text"&gt;ods graphics on / attrpriority=none;
proc sgplot data=sashelp.iris aspect=1;
   styleattrs datasymbols=(trianglefilled circlefilled squarefilled);
   scatter x=petalwidth y=sepalwidth / group=species;
   keylegend / location=outside position=right across=1;
run;&lt;/PRE&gt;&lt;P&gt;Reference Link :&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/10/08/getting-started-with-sgplot-part-13-style-attributes/#prettyPhoto" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/10/08/getting-started-with-sgplot-part-13-style-attributes/#prettyPhoto&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 20:52:09 GMT</pubDate>
    <dc:creator>learn001</dc:creator>
    <dc:date>2020-04-15T20:52:09Z</dc:date>
    <item>
      <title>How To: Change the symbol/sings in scatter plot that grouped by class</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Change-the-symbol-sings-in-scatter-plot-that-grouped-by/m-p/639241#M190112</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to plot&amp;nbsp; two variables and&amp;nbsp; by using different colors/signs to plot the points belonging to three different classes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / reset width=6.4in height=4.8in imagemap;&lt;/P&gt;&lt;P&gt;proc sgplot data=WORK.FINALWINEDATA;&lt;BR /&gt;scatter x=Alcohol y=Total_phenols / group=Class&lt;BR /&gt;markerattrs=(symbol=circlefilled size=10);&lt;BR /&gt;xaxis grid;&lt;BR /&gt;yaxis grid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics / reset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i'm trying add more symbol, i get below error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: ODS statements in the SAS Studio environment may disable some output features.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 /* Plot the graph*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 ods graphics / reset width=6.4in height=4.8in imagemap;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 proc sgplot data=WORK.FINALWINEDATA;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 scatter x=Alcohol y=Total_phenols / group=Class&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 markerattrs=(&lt;FONT color="#FF0000"&gt;symbol=circlefilled trianglefilled diamondfilled&lt;/FONT&gt; size=10);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;______________&lt;/DIV&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;202&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-322: Syntax error, expecting one of the following: ), COLOR, SIZE, SYMBOL.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 xaxis grid;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82 yaxis grid;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE SGPLOT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 ods graphics / reset;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;99&lt;/DIV&gt;</description>
      <pubDate>Sun, 12 Apr 2020 01:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Change-the-symbol-sings-in-scatter-plot-that-grouped-by/m-p/639241#M190112</guid>
      <dc:creator>learn001</dc:creator>
      <dc:date>2020-04-12T01:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How To: Change the symbol/sings in scatter plot that grouped by class</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Change-the-symbol-sings-in-scatter-plot-that-grouped-by/m-p/639266#M190132</link>
      <description>&lt;P&gt;The &lt;CODE&gt;STYLEATTRS&lt;/CODE&gt; statement will override default color and style cycling.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Blog entry&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2018/06/13/attrpriority-cycleattrs-styleattrs-ods-graphics.html" target="_self"&gt;"Attrs, attrs, everywhere: The interaction between ATTRPRIORITY, CYCLEATTRS, and STYLEATTRS in ODS graphics"&lt;/A&gt;&amp;nbsp; covers the topic in more detail.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;data have;
  do x = 0 to 20 by .25;
    class = 'A';
    y = sin(x+5);
    output;
    class = 'B';
    y = 2 + 2 * sin(x/2);
    output;
    class = 'C';
    y = 6 + 3 * sin(x/1.25);
    output;
  end;
run;

ods html file='series.html';

ods graphics / attrpriority=none;

proc sgplot data=have;
  scatter x=x y=y / 
    group=class    
  ;

  styleattrs 
    datacontrastcolors = ( black red purple )
    datasymbols = ( circlefilled trianglefilled diamondfilled )
  ;
run;

ods html close;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RichardADeVenezia_0-1586673043951.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38232i10A05AFB483A0D1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RichardADeVenezia_0-1586673043951.png" alt="RichardADeVenezia_0-1586673043951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 06:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Change-the-symbol-sings-in-scatter-plot-that-grouped-by/m-p/639266#M190132</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-04-12T06:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: How To: Change the symbol/sings in scatter plot that grouped by class</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Change-the-symbol-sings-in-scatter-plot-that-grouped-by/m-p/640219#M190630</link>
      <description>&lt;P&gt;Issue Resolved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used below refer code to fix my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE class="text"&gt;ods graphics on / attrpriority=color;
proc sgplot data=sashelp.iris aspect=1;
   scatter x=petalwidth y=sepalwidth / group=species;
   keylegend / location=outside position=right across=1;
run;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="text"&gt;ods graphics on / attrpriority=none;
proc sgplot data=sashelp.iris aspect=1;
   styleattrs datasymbols=(trianglefilled circlefilled squarefilled);
   scatter x=petalwidth y=sepalwidth / group=species;
   keylegend / location=outside position=right across=1;
run;&lt;/PRE&gt;&lt;P&gt;Reference Link :&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/10/08/getting-started-with-sgplot-part-13-style-attributes/#prettyPhoto" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/10/08/getting-started-with-sgplot-part-13-style-attributes/#prettyPhoto&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 20:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Change-the-symbol-sings-in-scatter-plot-that-grouped-by/m-p/640219#M190630</guid>
      <dc:creator>learn001</dc:creator>
      <dc:date>2020-04-15T20:52:09Z</dc:date>
    </item>
  </channel>
</rss>

