<?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 Modify dot color of Scatter Graph within a Group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Modify-dot-color-of-Scatter-Graph-within-a-Group/m-p/553799#M154023</link>
    <description>&lt;P&gt;You can override the current style assignments with the STYLEATTRS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;styleattrs&lt;/FONT&gt; &lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;datacontrastcolors&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;=(green purple);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;will set the first value of the group variable to green and the second to purple, so with your data you may need to switch the order the colors appear. You can override fill colors, line colors and patterns as well. Datacontrastcolor is used for markers or boundaries of bars.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;If you want to be consistent for the color assignment in multiple graphs you would either make sure the sort order so that the "first"&amp;nbsp;group value is the same.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;OR investigate the DATTRMAP data set to allow consistent settings for group values regardless of data order.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 22:04:33 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-04-24T22:04:33Z</dc:date>
    <item>
      <title>How to Modify dot color of Scatter Graph within a Group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Modify-dot-color-of-Scatter-Graph-within-a-Group/m-p/553795#M154021</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have create a SGPLOT scatter graph and group the display data by indicator 'gender'. I wonder how can I change the dot color within the group (for example: male for green dot, female for purple dot) to make the graph easier to read? The code I created is in below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SGPLOT DATA=ClassPopulation NOAUTOLEGEND;
	scatter X=height Y=weight / 
	GROUP=gender
	;
	XAx&lt;/CODE&gt;is MAX= 250;&lt;BR /&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;       Yaxis MIN= 50 MAX= 300;&lt;BR /&gt;        RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks a Lot!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 21:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Modify-dot-color-of-Scatter-Graph-within-a-Group/m-p/553795#M154021</guid>
      <dc:creator>lpf19sam</dc:creator>
      <dc:date>2019-04-24T21:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Modify dot color of Scatter Graph within a Group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Modify-dot-color-of-Scatter-Graph-within-a-Group/m-p/553799#M154023</link>
      <description>&lt;P&gt;You can override the current style assignments with the STYLEATTRS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;styleattrs&lt;/FONT&gt; &lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;datacontrastcolors&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;=(green purple);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;will set the first value of the group variable to green and the second to purple, so with your data you may need to switch the order the colors appear. You can override fill colors, line colors and patterns as well. Datacontrastcolor is used for markers or boundaries of bars.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;If you want to be consistent for the color assignment in multiple graphs you would either make sure the sort order so that the "first"&amp;nbsp;group value is the same.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;OR investigate the DATTRMAP data set to allow consistent settings for group values regardless of data order.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 22:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Modify-dot-color-of-Scatter-Graph-within-a-Group/m-p/553799#M154023</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-24T22:04:33Z</dc:date>
    </item>
  </channel>
</rss>

