<?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: SGPLOT using unicode for MarkerSymbol in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-using-unicode-for-MarkerSymbol/m-p/943506#M369785</link>
    <description>&lt;P&gt;One way, I'm sure there are others but you specifically mention a discrete attribute map data set, is to provide a special name for the MARKERSYMBOL value in the attribute dataset, this may require changing your currently defined length of the Markersymbol variable. May have to add or increase the MARKERSIZE in the attribute set as well.&lt;/P&gt;
&lt;P&gt;Then in the Proc use as many SYMBOLCHAR statements to link the markersymbol name used to the unicode value.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;data attrmap;
input value $ markersymbol $ markercolor :$25. markersize;
  id='myattrid';
datalines;
F  charf red 25
M  charm blue 25
;

proc sgplot data=sashelp.class dattrmap=attrmap;
   scatter x=height y=weight/group=Sex attrid=myattrid;
   symbolchar name=charf char="2297"x;
   symbolchar name=charm char="2642"x; 
run;&lt;/PRE&gt;
&lt;P&gt;The value of MARKERSYMBOL isn't that critical but it may help to chose something you can remember. CHARF in this case for me is "character for F values". Note that I used your "circled X" for Charf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default marker sizes for unicode displayed this way was pretty small.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not have to change any other markers that may be using the traditional "circlefilled" or similar markers. The name / symbolchar only for the markers that use unicode.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2024 16:01:46 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-09-11T16:01:46Z</dc:date>
    <item>
      <title>SGPLOT using unicode for MarkerSymbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-using-unicode-for-MarkerSymbol/m-p/943489#M369781</link>
      <description>&lt;P&gt;I defined attribution map in SGPLOT. MarkerSymbol originally used "X" for example. Now I was asked to use&lt;EM&gt; circled x&lt;/EM&gt; (unicode '2297'x). But I don't know how to do it. Please help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 14:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-using-unicode-for-MarkerSymbol/m-p/943489#M369781</guid>
      <dc:creator>jsbyxws</dc:creator>
      <dc:date>2024-09-11T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT using unicode for MarkerSymbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SGPLOT-using-unicode-for-MarkerSymbol/m-p/943506#M369785</link>
      <description>&lt;P&gt;One way, I'm sure there are others but you specifically mention a discrete attribute map data set, is to provide a special name for the MARKERSYMBOL value in the attribute dataset, this may require changing your currently defined length of the Markersymbol variable. May have to add or increase the MARKERSIZE in the attribute set as well.&lt;/P&gt;
&lt;P&gt;Then in the Proc use as many SYMBOLCHAR statements to link the markersymbol name used to the unicode value.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;data attrmap;
input value $ markersymbol $ markercolor :$25. markersize;
  id='myattrid';
datalines;
F  charf red 25
M  charm blue 25
;

proc sgplot data=sashelp.class dattrmap=attrmap;
   scatter x=height y=weight/group=Sex attrid=myattrid;
   symbolchar name=charf char="2297"x;
   symbolchar name=charm char="2642"x; 
run;&lt;/PRE&gt;
&lt;P&gt;The value of MARKERSYMBOL isn't that critical but it may help to chose something you can remember. CHARF in this case for me is "character for F values". Note that I used your "circled X" for Charf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default marker sizes for unicode displayed this way was pretty small.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not have to change any other markers that may be using the traditional "circlefilled" or similar markers. The name / symbolchar only for the markers that use unicode.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 16:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SGPLOT-using-unicode-for-MarkerSymbol/m-p/943506#M369785</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-11T16:01:46Z</dc:date>
    </item>
  </channel>
</rss>

