<?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: Changing colors in sgscatter in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Changing-colors-in-sgscatter/m-p/288491#M10200</link>
    <description>&lt;P&gt;Thanks, this is my solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data Attrs;&lt;BR /&gt;length Value 8. MarkerColor $20 Markersymbol $20;&lt;BR /&gt;ID = "res_campa"; &lt;BR /&gt;Value = 0; MarkerColor = "DarkBlue "; Markersymbol = "circlefilled "; output;&lt;BR /&gt;Value = 1; MarkerColor = "DarkRed "; Markersymbol = "star ";output;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGSCATTER DATA=test DATTRMAP=Attrs;&lt;BR /&gt; TITLE "Matriz del trazado de dispersión";&lt;BR /&gt; MATRIX compras_3m compras_12m tipo_cliente1 rango_edad&lt;BR /&gt; / &lt;BR /&gt; GROUP=res_campa ATTRID=res_campa ; &lt;BR /&gt; &lt;BR /&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2016 09:18:49 GMT</pubDate>
    <dc:creator>juanvg1972</dc:creator>
    <dc:date>2016-08-01T09:18:49Z</dc:date>
    <item>
      <title>Changing colors in sgscatter</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-colors-in-sgscatter/m-p/288467#M10198</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using sgscatter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGSCATTER DATA=test;&lt;BR /&gt; TITLE "Matriz del trazado de dispersión";&lt;BR /&gt; MATRIX compras_3m compras_12m tipo_cliente1 rango_edad&lt;BR /&gt; / GROUP=res_campa ; &lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get some graph x-y combining c&lt;SPAN&gt;ompras_3m compras_12m tipo_cliente1 rango_edad and the color and symbol of the dot&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is res_campa. The var res_campa is my target var in the model. It has 2 possible values 1 and 0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to change the color and the symbol of res_campa values in my graph of sgscatter, how can I do it??&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The default color are very similar and the graph is using by defalut the same symbol (o) for both values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want ti change color and symbol of dots depending on res_campa values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the solution is using sgplot or similar I don't mind to use another proc...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any advice will be greatfull appreciatted.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Juan&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 08:17:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-colors-in-sgscatter/m-p/288467#M10198</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2016-08-01T08:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing colors in sgscatter</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-colors-in-sgscatter/m-p/288479#M10199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First port of call on any graph related question:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is examples for virtually every graph imaginable in sgplot/gtl etc.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 08:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-colors-in-sgscatter/m-p/288479#M10199</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-01T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing colors in sgscatter</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Changing-colors-in-sgscatter/m-p/288491#M10200</link>
      <description>&lt;P&gt;Thanks, this is my solution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data Attrs;&lt;BR /&gt;length Value 8. MarkerColor $20 Markersymbol $20;&lt;BR /&gt;ID = "res_campa"; &lt;BR /&gt;Value = 0; MarkerColor = "DarkBlue "; Markersymbol = "circlefilled "; output;&lt;BR /&gt;Value = 1; MarkerColor = "DarkRed "; Markersymbol = "star ";output;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SGSCATTER DATA=test DATTRMAP=Attrs;&lt;BR /&gt; TITLE "Matriz del trazado de dispersión";&lt;BR /&gt; MATRIX compras_3m compras_12m tipo_cliente1 rango_edad&lt;BR /&gt; / &lt;BR /&gt; GROUP=res_campa ATTRID=res_campa ; &lt;BR /&gt; &lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 09:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Changing-colors-in-sgscatter/m-p/288491#M10200</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2016-08-01T09:18:49Z</dc:date>
    </item>
  </channel>
</rss>

