<?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 used filledoutlinemarkers with a dattrmap? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827491#M326887</link>
    <description>&lt;P&gt;No need " dattrmap= "&amp;nbsp; .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myattrmap;
	length id $10. value $30. MARKERCOLOR $40. color $10.;
	id = "scatter1";
	value='M';
	MARKERCOLOR='cxCC7BA1';
	markersize=20;
	MARKERSYMBOL = 'circlefilled';
	output;
	ID='scatter1';
	value="F";
	MARKERCOLOR='cx95BDE1';
    markersize=20;
	MARKERSYMBOL = 'circlefilled';
	output;
run;

proc sgplot data=sashelp.class dattrmap=myattrmap;
   styleattrs   datacolors=(  cxCC7BA1 cx95BDE1) datacontrastcolors=(red yellow)  ;
   scatter x=height y=weight/group=sex  filledoutlinedmarkers attrid=scatter1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1659867529208.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74212i80C110EDCB2BDDDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1659867529208.png" alt="Ksharp_0-1659867529208.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Aug 2022 10:18:49 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-08-07T10:18:49Z</dc:date>
    <item>
      <title>How to used filledoutlinemarkers with a dattrmap?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827481#M326881</link>
      <description>&lt;P&gt;I am trying to use a dattrmap to specify colors for each group of a scatter plot. I specifically need the "filledoutlinemarkers" style but can't seem to figure out if that's possible with the attribute map. The plot that I need can be created like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class ;
   scatter x=height y=weight/group=sex filledoutlinedmarkers markerattrs=(symbol =circlefilled);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I try to make this plot using a dattrmap however, I don't end up having that outline on my markers (just solid filled circles)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myattrmap;
	length id $10. value $30. MARKERCOLOR $40. color $10.;
	id = "scatter1";
	value='M';
	MARKERCOLOR='cxCC7BA1';
	MARKERSYMBOL = 'circlefilled';
	output;
	ID='scatter1';
	value="F";
	MARKERCOLOR='cx95BDE1';
	MARKERSYMBOL = 'circlefilled';
	output;
run;

proc sgplot data=sashelp.class dattrmap=myattrmap;
   scatter x=height y=weight/group=sex attrid=scatter1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a way to specify the outline using a dattrmap?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 00:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827481#M326881</guid>
      <dc:creator>Ani7</dc:creator>
      <dc:date>2022-08-07T00:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to used filledoutlinemarkers with a dattrmap?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827491#M326887</link>
      <description>&lt;P&gt;No need " dattrmap= "&amp;nbsp; .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myattrmap;
	length id $10. value $30. MARKERCOLOR $40. color $10.;
	id = "scatter1";
	value='M';
	MARKERCOLOR='cxCC7BA1';
	markersize=20;
	MARKERSYMBOL = 'circlefilled';
	output;
	ID='scatter1';
	value="F";
	MARKERCOLOR='cx95BDE1';
    markersize=20;
	MARKERSYMBOL = 'circlefilled';
	output;
run;

proc sgplot data=sashelp.class dattrmap=myattrmap;
   styleattrs   datacolors=(  cxCC7BA1 cx95BDE1) datacontrastcolors=(red yellow)  ;
   scatter x=height y=weight/group=sex  filledoutlinedmarkers attrid=scatter1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1659867529208.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74212i80C110EDCB2BDDDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1659867529208.png" alt="Ksharp_0-1659867529208.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 10:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827491#M326887</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-07T10:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to used filledoutlinemarkers with a dattrmap?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827512#M326890</link>
      <description>&lt;P&gt;I can't use this solution since it overrides the dattrmap. So if I plot after filtering to sex="F", I end up with that group being assigned the color for "M" when both "M" and "F" are available.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myattrmap;
	length id $10. value $30. MARKERCOLOR $40. color $10.;
	id = "scatter1";
	value='M';
	MARKERCOLOR='cxCC7BA1';
	MARKERSYMBOL = 'circlefilled';
	output;
	ID='scatter1';
	value="F";
	MARKERCOLOR='cx95BDE1';
	MARKERSYMBOL = 'circlefilled';
	output;
run;

proc sgplot data=sashelp.class (where=(sex = "F")) dattrmap=myattrmap;
   styleattrs datacolors=(cxCC7BA1 cx95BDE1) datacontrastcolors=(red yellow);
   scatter x=height y=weight/group=sex  filledoutlinedmarkers attrid=scatter1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ani7_0-1659900479872.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74214i2D8CE6A58882C98B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ani7_0-1659900479872.png" alt="Ani7_0-1659900479872.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 19:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827512#M326890</guid>
      <dc:creator>Ani7</dc:creator>
      <dc:date>2022-08-07T19:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to used filledoutlinemarkers with a dattrmap?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827587#M326920</link>
      <description>&lt;P&gt;OK。How about this one ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data myattrmap;
 length id $10. value $30. MARKERCOLOR $40.;
 id = "scatter1";
 value='M';
 MARKERCOLOR='cxCC7BA1';
 FillColor='cxCC7BA1';
 LineColor='green';
 MARKERSYMBOL = 'circlefilled';markersize=20;
 output;
 ID='scatter1';
 value="F";
 MARKERCOLOR='cx95BDE1';
 FillColor='cx95BDE1';
 LineColor='black';
 MARKERSYMBOL = 'circlefilled';markersize=20;
 output;
run;

proc sgplot data=sashelp.class (where=(sex = "F")) dattrmap=myattrmap;
   scatter x=height y=weight/group=sex  filledoutlinedmarkers attrid=scatter1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1659959483652.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74225i2BECA2748061EFCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1659959483652.png" alt="Ksharp_0-1659959483652.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 11:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-used-filledoutlinemarkers-with-a-dattrmap/m-p/827587#M326920</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-08-08T11:51:22Z</dc:date>
    </item>
  </channel>
</rss>

