<?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 Question on Proc Sgplot Markers in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856155#M23461</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to generate a figure by using proc sgplot&amp;nbsp; and I want the markers symbols to be present outside the figure below the X-axis at wek 0 , week 4 and week 24 etc and&amp;nbsp; here is the code&amp;nbsp; I am using&amp;nbsp; and output . But I am getting the markers(trianglefilled homedown filled) inside the figure :&amp;nbsp; Could you pleas let me know how to work to get the markers outside and here is the sample figure iam attaching and also the pictures of my figure of what iam getting and what i need&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sgplot data=tmp2 ; &lt;BR /&gt;xaxis integer label ='Week' values=(0 to 52 by 4 ) /*offsetmin=0.05 offsetmax=0.05*/ ; &lt;BR /&gt;yaxis integer label ='Seroprotection Rate (%) with 95% confidence intervals' /*offsetmin=0.08*/ values=(0 to 100 by 10) ; &lt;BR /&gt;&lt;BR /&gt;scatter x=byn2 y=line1 / /*datalabel = col1 datalabelattrs=(color=blue size=5.5 style=italic weight=bold)*/&lt;BR /&gt;yerrorlower=lcl1 yerrorupper=ucl1&lt;BR /&gt;legendlabel = 'X' &lt;BR /&gt;markerattrs=(symbol=circlefilled size=6 color=Blue)&lt;BR /&gt;errorbarattrs= (color=Blue)&lt;BR /&gt;; &lt;BR /&gt;series x=byn2 y=line1/&lt;BR /&gt;legendlabel = 'X' &lt;BR /&gt;lineattrs = (pattern=shortdash thickness=2 color=Blue)&lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line2 / /*datalabel = col2 datalabelattrs=(color=orange size=5.5 style=italic weight=bold)*/&lt;BR /&gt;yerrorlower=lcl2 yerrorupper=ucl2&lt;BR /&gt;legendlabel = 'Y' &lt;BR /&gt;markerattrs=(symbol=starfilled size=6 color=Orange)&lt;BR /&gt;errorbarattrs= (color=orange)&lt;BR /&gt;; &lt;BR /&gt;series x=byn2 y=line2/ &lt;BR /&gt;legendlabel = 'Y'&lt;BR /&gt;lineattrs = (pattern=shortdash thickness=2 color=Orange) &lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line3 / /*datalabel = col1 datalabelattrs=(color=Blue size=5.5 style=italic weight=bold)*/ &lt;BR /&gt;yerrorlower=lcl1 yerrorupper=ucl1&lt;BR /&gt;legendlabel = 'Z' &lt;BR /&gt;markerattrs=(symbol=circlefilled size=6 color=Blue)&lt;BR /&gt;errorbarattrs= (color=Blue)&lt;BR /&gt;; &lt;BR /&gt;series x=byn2 y=line3/&lt;BR /&gt;legendlabel = 'Z'&lt;BR /&gt;lineattrs = (pattern=solid thickness=2 color=Blue) &lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line4 / /*datalabel = col2 datalabelattrs=(color=Orange size=5.5 style=italic weight=bold)*/&lt;BR /&gt;yerrorlower=lcl2 yerrorupper=ucl2&lt;BR /&gt;legendlabel = 'a' &lt;BR /&gt;markerattrs=(symbol=starfilled size=6 color=Orange)&lt;BR /&gt;errorbarattrs= (color=orange)&lt;BR /&gt;;&lt;BR /&gt;series x=byn2 y=line4/&lt;BR /&gt;legendlabel = 'a' &lt;BR /&gt;lineattrs = (pattern=solid thickness=2 color=Orange) &lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line5 / &lt;BR /&gt;legendlabel = 'b' &lt;BR /&gt;markerattrs=(symbol=trianglefilled size=8 color=Blue)&lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line6 / &lt;BR /&gt;legendlabel = 'c' &lt;BR /&gt;markerattrs=(symbol=HomeDownFilled size=8 color=Orange)&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;xaxistable byn2 /x=line5 location=outside label='b' &lt;BR /&gt;valueattrs=(color=blue) &lt;BR /&gt;labelattrs=(color=blue)&lt;BR /&gt;titleattrs=(color=blue);&lt;BR /&gt;&lt;BR /&gt;keylegend / location=outside position=bottom across=2 down=4 valueattrs=(size=9) ;&lt;BR /&gt;run ;&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>Tue, 31 Jan 2023 12:29:19 GMT</pubDate>
    <dc:creator>mounikag</dc:creator>
    <dc:date>2023-01-31T12:29:19Z</dc:date>
    <item>
      <title>Question on Proc Sgplot Markers</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856155#M23461</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to generate a figure by using proc sgplot&amp;nbsp; and I want the markers symbols to be present outside the figure below the X-axis at wek 0 , week 4 and week 24 etc and&amp;nbsp; here is the code&amp;nbsp; I am using&amp;nbsp; and output . But I am getting the markers(trianglefilled homedown filled) inside the figure :&amp;nbsp; Could you pleas let me know how to work to get the markers outside and here is the sample figure iam attaching and also the pictures of my figure of what iam getting and what i need&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sgplot data=tmp2 ; &lt;BR /&gt;xaxis integer label ='Week' values=(0 to 52 by 4 ) /*offsetmin=0.05 offsetmax=0.05*/ ; &lt;BR /&gt;yaxis integer label ='Seroprotection Rate (%) with 95% confidence intervals' /*offsetmin=0.08*/ values=(0 to 100 by 10) ; &lt;BR /&gt;&lt;BR /&gt;scatter x=byn2 y=line1 / /*datalabel = col1 datalabelattrs=(color=blue size=5.5 style=italic weight=bold)*/&lt;BR /&gt;yerrorlower=lcl1 yerrorupper=ucl1&lt;BR /&gt;legendlabel = 'X' &lt;BR /&gt;markerattrs=(symbol=circlefilled size=6 color=Blue)&lt;BR /&gt;errorbarattrs= (color=Blue)&lt;BR /&gt;; &lt;BR /&gt;series x=byn2 y=line1/&lt;BR /&gt;legendlabel = 'X' &lt;BR /&gt;lineattrs = (pattern=shortdash thickness=2 color=Blue)&lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line2 / /*datalabel = col2 datalabelattrs=(color=orange size=5.5 style=italic weight=bold)*/&lt;BR /&gt;yerrorlower=lcl2 yerrorupper=ucl2&lt;BR /&gt;legendlabel = 'Y' &lt;BR /&gt;markerattrs=(symbol=starfilled size=6 color=Orange)&lt;BR /&gt;errorbarattrs= (color=orange)&lt;BR /&gt;; &lt;BR /&gt;series x=byn2 y=line2/ &lt;BR /&gt;legendlabel = 'Y'&lt;BR /&gt;lineattrs = (pattern=shortdash thickness=2 color=Orange) &lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line3 / /*datalabel = col1 datalabelattrs=(color=Blue size=5.5 style=italic weight=bold)*/ &lt;BR /&gt;yerrorlower=lcl1 yerrorupper=ucl1&lt;BR /&gt;legendlabel = 'Z' &lt;BR /&gt;markerattrs=(symbol=circlefilled size=6 color=Blue)&lt;BR /&gt;errorbarattrs= (color=Blue)&lt;BR /&gt;; &lt;BR /&gt;series x=byn2 y=line3/&lt;BR /&gt;legendlabel = 'Z'&lt;BR /&gt;lineattrs = (pattern=solid thickness=2 color=Blue) &lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line4 / /*datalabel = col2 datalabelattrs=(color=Orange size=5.5 style=italic weight=bold)*/&lt;BR /&gt;yerrorlower=lcl2 yerrorupper=ucl2&lt;BR /&gt;legendlabel = 'a' &lt;BR /&gt;markerattrs=(symbol=starfilled size=6 color=Orange)&lt;BR /&gt;errorbarattrs= (color=orange)&lt;BR /&gt;;&lt;BR /&gt;series x=byn2 y=line4/&lt;BR /&gt;legendlabel = 'a' &lt;BR /&gt;lineattrs = (pattern=solid thickness=2 color=Orange) &lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line5 / &lt;BR /&gt;legendlabel = 'b' &lt;BR /&gt;markerattrs=(symbol=trianglefilled size=8 color=Blue)&lt;BR /&gt;;&lt;BR /&gt;scatter x=byn2 y=line6 / &lt;BR /&gt;legendlabel = 'c' &lt;BR /&gt;markerattrs=(symbol=HomeDownFilled size=8 color=Orange)&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;xaxistable byn2 /x=line5 location=outside label='b' &lt;BR /&gt;valueattrs=(color=blue) &lt;BR /&gt;labelattrs=(color=blue)&lt;BR /&gt;titleattrs=(color=blue);&lt;BR /&gt;&lt;BR /&gt;keylegend / location=outside position=bottom across=2 down=4 valueattrs=(size=9) ;&lt;BR /&gt;run ;&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>Tue, 31 Jan 2023 12:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856155#M23461</guid>
      <dc:creator>mounikag</dc:creator>
      <dc:date>2023-01-31T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Proc Sgplot Markers</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856211#M23464</link>
      <description>&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/*
NOTICE:
using UNICODE SAS to run the following code.
*/&lt;/STRONG&gt;&lt;/FONT&gt;

data have;
 set sashelp.stocks;
 if year(date) in (2004:2006);
 if stock='IBM' and month(date) in (1 4 6 10) then flag='▲';
 if stock='Intel' and month(date) in (2 8) then flag='▲';
 if stock='Microsoft' and month(date) in (5 9) then flag='▲';

 if stock='IBM' then do;group=1;class='AAAAA';end;
  else do;group=2;class='BBBBB';end;
run;

ods graphics /attrpriority=none;
proc sgplot data=have;
series x=date y=close/group=stock markers 
grouplc=group groupmc=group lineattrs=(pattern=solid);
xaxistable flag/class=class x=date colorgroup=group;
keylegend /location=inside position=e across=1;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2023 11:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856211#M23464</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-30T11:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Proc Sgplot Markers</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856213#M23465</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1675077151371.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79913iA19B3CB2BF65EC6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1675077151371.png" alt="Ksharp_0-1675077151371.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 11:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856213#M23465</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-30T11:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Proc Sgplot Markers</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856403#M23466</link>
      <description>&lt;P&gt;How do you get SAS unicode for markers to work? I am unable to get 'trianglefilled' using "(*ESC*){unicode '25b2'x}" on SAS9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data have;
set sashelp.stocks;
if year(date) in (2004:2006);
if stock='IBM' and month(date) in (1 4 6 10) then flag="(*ESC*){unicode '25b2'x}";
if stock='Intel' and month(date) in (2 8) then flag="(*ESC*){unicode '25b2'x}";
if stock='Microsoft' and month(date) in (5 9) then flag="(*ESC*){unicode '25b2'x}";

if stock='IBM' then do;group=1;class='AAAAA';end;
else do;group=2;class='BBBBB';end;
run;

*ods graphics /attrpriority=none;
proc sgplot data=have;
series x=date y=close/group=stock markers
grouplc=group groupmc=group lineattrs=(pattern=solid);
xaxistable flag/class=class x=date colorgroup=group;
keylegend /location=inside position=e across=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="output.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79963iDDED1C65B9BBF489/image-size/large?v=v2&amp;amp;px=999" role="button" title="output.png" alt="output.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>Tue, 31 Jan 2023 02:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856403#M23466</guid>
      <dc:creator>tdahiya</dc:creator>
      <dc:date>2023-01-31T02:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Proc Sgplot Markers</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856420#M23467</link>
      <description>&lt;P&gt;Try UNICODE() function , make sure your sas session 's encoding is utf8 or others which support triangle characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
set sashelp.stocks;
if year(date) in (2004:2006);
if stock='IBM' and month(date) in (1 4 6 10) then flag=unicode('\u25b2');
if stock='Intel' and month(date) in (2 8) then flag=unicode('\u25b2');
if stock='Microsoft' and month(date) in (5 9) then flag=unicode('\u25b2');

if stock='IBM' then do;group=1;class='AAAAA';end;
else do;group=2;class='BBBBB';end;
run;

*ods graphics /attrpriority=none;
proc sgplot data=have;
series x=date y=close/group=stock markers
grouplc=group groupmc=group lineattrs=(pattern=solid);
xaxistable flag/class=class x=date colorgroup=group;
keylegend /location=inside position=e across=1;
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-1675157707934.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79965i79CEFAFB089ED859/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1675157707934.png" alt="Ksharp_0-1675157707934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 09:35:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856420#M23467</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-01-31T09:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Proc Sgplot Markers</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856480#M23468</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;'s technique is the best way to get special Unicode characters in your actual data. We do not evaluate ODS escapements in the data itself -- only in strings provided through the syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To solve this request, the symbol needed to be in the data; but you should not have to use this technique for situations where the symbols are plotted by a statement that supports marker symbols (SCATTER, SERIES, etc), as these font symbols can be accessed via the SYMBOLCHAR statement.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 15:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/856480#M23468</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2023-01-31T15:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Proc Sgplot Markers</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/869518#M23674</link>
      <description>&lt;P&gt;Hi everyone! I have 4 variables that are 0/1 responses. For example: Input GroupA GroupB GroupC GroupD; datalines ; 1 0 0 1 1 0 1 0 0 0 0 1 0 1 1 1 etc etc. How would I plot each of the variables into ONE vbar graph? Currently what I have: PROC SGPLOT; VBAR GroupA GroupB GroupC GroupD; and it does not work for me. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 07:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/869518#M23674</guid>
      <dc:creator>jabujakan</dc:creator>
      <dc:date>2023-04-13T07:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Proc Sgplot Markers</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/869551#M23675</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
All your variables "GroupA GroupB GroupC GroupD" are category variable.
But VBAR is usually for continuous variable.
So what graph you want to output ,could you post an example ?
Or maybe you want this ?
*/

data have;
 Input GroupA GroupB GroupC GroupD; 
datalines ; 
1 0 0 1 
1 0 1 0 
0 0 0 1 
0 1 1 1
0 1 1 1 
1 1 1 1 
1 1 1 1 
;
data have;
 set have;
 id+1;
run;
proc transpose data=have out=want;
by id;
run;
proc sgplot data=want pctlevel=group;
vbar _NAME_/group=col1 stat=percent;
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-1681386166962.png" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82660iF394A4C0B26AC435/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1681386166962.png" alt="Ksharp_0-1681386166962.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 11:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Question-on-Proc-Sgplot-Markers/m-p/869551#M23675</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-04-13T11:43:01Z</dc:date>
    </item>
  </channel>
</rss>

