<?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: Coloured Scatter Diagram in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358626#M12472</link>
    <description>&lt;P&gt;See &lt;A href="http://blogs.sas.com/content/iml/2012/10/22/whats-in-a-name.html" target="_self"&gt;"Three ways to specify colors in SAS statistical procedures."&lt;/A&gt;&amp;nbsp; Also see&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p1lcbd3lhs3t3bn1jk6d8sjt2yqx.htm" target="_self"&gt; the documentation for the SCATTER statement&lt;/A&gt;, especially the MARKERATTRS= option.&lt;/P&gt;</description>
    <pubDate>Sun, 14 May 2017 23:23:03 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-05-14T23:23:03Z</dc:date>
    <item>
      <title>Coloured Scatter Diagram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358603#M12467</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a scatter plot with two continuous variables. I'd then like to colour the plots according to a third, categorical variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code so far is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data = sasuser.data1;&lt;BR /&gt;scatter x = tradingyears y = sales2015;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 21:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358603#M12467</guid>
      <dc:creator>rebeccabarton</dc:creator>
      <dc:date>2017-05-14T21:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Coloured Scatter Diagram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358616#M12468</link>
      <description>&lt;P&gt;Of course!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding the third variable as a GROUP var in your scatter statement. Example 1 in the documentation covers this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n06fb9ichgg6akn18060gbtvw9pw.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#n06fb9ichgg6akn18060gbtvw9pw.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to control the colours see the post below&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2012/10/17/specify-the-colors-of-groups-in-sas-statistical-graphics.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2012/10/17/specify-the-colors-of-groups-in-sas-statistical-graphics.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possibly more than you need now, but good to know:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2017/01/30/auto-discrete-attr-map.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2017/01/30/auto-discrete-attr-map.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 21:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358616#M12468</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-14T21:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Coloured Scatter Diagram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358618#M12469</link>
      <description>&lt;P&gt;Thanks, this is perfect, is it also possible to set the colour of the whole plot simply?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 22:16:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358618#M12469</guid>
      <dc:creator>rebeccabarton</dc:creator>
      <dc:date>2017-05-14T22:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Coloured Scatter Diagram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358624#M12470</link>
      <description>&lt;P&gt;I'm not sure what you mean by 'whole plot'?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Colours are usually defined by the Style set. If you're using SAS Studio this is likely HTMLBlue. For publications the style Journal/Journal1 are good. For a clean compact look, I like the Seaside and Meadow styles. Finally, there's a post on here that has the style definition in the style of Stephen Few.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 22:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358624#M12470</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-14T22:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Coloured Scatter Diagram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358625#M12471</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Sorry I meant if I wanted to change the colour of the plots, when not splitting by the categorical variable. So just each dot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 23:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358625#M12471</guid>
      <dc:creator>rebeccabarton</dc:creator>
      <dc:date>2017-05-14T23:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Coloured Scatter Diagram</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358626#M12472</link>
      <description>&lt;P&gt;See &lt;A href="http://blogs.sas.com/content/iml/2012/10/22/whats-in-a-name.html" target="_self"&gt;"Three ways to specify colors in SAS statistical procedures."&lt;/A&gt;&amp;nbsp; Also see&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p1lcbd3lhs3t3bn1jk6d8sjt2yqx.htm" target="_self"&gt; the documentation for the SCATTER statement&lt;/A&gt;, especially the MARKERATTRS= option.&lt;/P&gt;</description>
      <pubDate>Sun, 14 May 2017 23:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Coloured-Scatter-Diagram/m-p/358626#M12472</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-14T23:23:03Z</dc:date>
    </item>
  </channel>
</rss>

