<?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: Help with SGPanel attributes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-SGPanel-attributes/m-p/859007#M339411</link>
    <description>&lt;P&gt;Thank you for the response. Tried&amp;nbsp;rowaxis label='Enrollment Year' labelattrs=(family=arial size=10 weight=bold color=black) values=(2017 to 2022 by 1) REVERSE ;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still not working.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 17:29:12 GMT</pubDate>
    <dc:creator>sms1891</dc:creator>
    <dc:date>2023-02-15T17:29:12Z</dc:date>
    <item>
      <title>Help with SGPanel attributes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-SGPanel-attributes/m-p/859000#M339409</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I generated an output using SGpanel, however for my y-axis variable (Enrollment_Year 2017, 2018, 2019, 2020, 2021, 2022), the graph output is giving me labeling only for even years and skipping out odd year labeling on the graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help in advance!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc means data=bar1 noprint nway;
 class measure Enrollment_year ;
 var score ;
 where score &amp;gt;.;
 output out=bytype (drop=_type_ _freq_) n(score)=n mean(score )=mean  uclm(score)=uclm lclm(score )=lclm;
 run;  

* also make an overall graph;
proc means data=bar1 noprint nway;
 class Enrollment_year   ;
 var score ;
 where score &amp;gt;.;
 output out=bytypeall (drop=_type_ _freq_) n(score)=n  mean(score )=mean  uclm(score)=uclm lclm(score )=lclm;
 run;  
 data bytypeall; set bytypeall;
  measure="OVERALL"; 
  run;  
 

data bytype2; set bytype bytypeall;
 Activity=measure; * just renaming;
  
  meanround=round(mean,.1); format meanround 4.1;
  group=measure ||' '||  Enrollment_year || '  '||(put(n,$3.))||'  '||put(meanround,f4.1) ;

  typen=  Enrollment_year  || '  '||(put(n,$3.))||'  '||put(meanround,f4.1) ;
  labelatzero=.01;
  labelatzero2='N = '||(put(n,$3.));
  *if activity='OVERALL' then labelatzero2=' ';

run; 

title 'Dont use this plot because there are not enough practices in act 1 to 10 in early years';
* the problem with sgpanel is the number of graphs to look at is uneven and height cant be specified - ah - can change height though!;
ods graphics on /  border=off height=10in width=8in noscale outputfmt=png ;
proc sgpanel data=bytype2 ; 
 panelby Activity/ layout=panel border /*noheaderborder*/ columns=2 rows=8  skipemptycells /*onepanel*/ 
         headerbackcolor=lightgrey headerattrs=(family=arial size=9 weight=bold color=black);
 highlow y=Enrollment_year   high=uclm low=lclm/ type=bar barwidth=.5 nooutline fillattrs=(color=cx42A5F5)  transparency=.3
       name='bar' legendlabel='95% Confidence Interval';
 scatter y=Enrollment_year    x=mean/Markerattrs=( Symbol=CIRCLEFILLED color=black Size=12) NAME="dot" legendlabel='Mean'; 
   colaxis label='Score' min=0 max=4 values=(0 1 2 3 4) labelattrs=(family=arial size=10 weight=bold color=black); 
   rowaxis label='Enrollment Year' labelattrs=(family=arial size=8 weight=bold color=black) REVERSE ; 
   text y=Enrollment_year  x=labelatzero text= labelatzero2;
   keylegend 'dot' 'bar';
 run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 16:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-SGPanel-attributes/m-p/859000#M339409</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2023-02-15T16:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SGPanel attributes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-SGPanel-attributes/m-p/859005#M339410</link>
      <description>&lt;P&gt;Add a VALUES= list of values to your Rowaxis statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;   rowaxis label='Enrollment Year' labelattrs=(family=arial size=8 weight=bold color=black) values=(2017 to 2022 by 1) REVERSE ; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146852"&gt;@sms1891&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi experts,&lt;/P&gt;
&lt;P&gt;I generated an output using SGpanel, however for my y-axis variable (Enrollment_Year 2017, 2018, 2019, 2020, 2021, 2022), the graph output is giving me labeling only for even years and skipping out odd year labeling on the graph.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help in advance!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;proc means data=bar1 noprint nway;
 class measure Enrollment_year ;
 var score ;
 where score &amp;gt;.;
 output out=bytype (drop=_type_ _freq_) n(score)=n mean(score )=mean  uclm(score)=uclm lclm(score )=lclm;
 run;  

* also make an overall graph;
proc means data=bar1 noprint nway;
 class Enrollment_year   ;
 var score ;
 where score &amp;gt;.;
 output out=bytypeall (drop=_type_ _freq_) n(score)=n  mean(score )=mean  uclm(score)=uclm lclm(score )=lclm;
 run;  
 data bytypeall; set bytypeall;
  measure="OVERALL"; 
  run;  
 

data bytype2; set bytype bytypeall;
 Activity=measure; * just renaming;
  
  meanround=round(mean,.1); format meanround 4.1;
  group=measure ||' '||  Enrollment_year || '  '||(put(n,$3.))||'  '||put(meanround,f4.1) ;

  typen=  Enrollment_year  || '  '||(put(n,$3.))||'  '||put(meanround,f4.1) ;
  labelatzero=.01;
  labelatzero2='N = '||(put(n,$3.));
  *if activity='OVERALL' then labelatzero2=' ';

run; 

title 'Dont use this plot because there are not enough practices in act 1 to 10 in early years';
* the problem with sgpanel is the number of graphs to look at is uneven and height cant be specified - ah - can change height though!;
ods graphics on /  border=off height=10in width=8in noscale outputfmt=png ;
proc sgpanel data=bytype2 ; 
 panelby Activity/ layout=panel border /*noheaderborder*/ columns=2 rows=8  skipemptycells /*onepanel*/ 
         headerbackcolor=lightgrey headerattrs=(family=arial size=9 weight=bold color=black);
 highlow y=Enrollment_year   high=uclm low=lclm/ type=bar barwidth=.5 nooutline fillattrs=(color=cx42A5F5)  transparency=.3
       name='bar' legendlabel='95% Confidence Interval';
 scatter y=Enrollment_year    x=mean/Markerattrs=( Symbol=CIRCLEFILLED color=black Size=12) NAME="dot" legendlabel='Mean'; 
   colaxis label='Score' min=0 max=4 values=(0 1 2 3 4) labelattrs=(family=arial size=10 weight=bold color=black); 
   rowaxis label='Enrollment Year' labelattrs=(family=arial size=8 weight=bold color=black) REVERSE ; 
   text y=Enrollment_year  x=labelatzero text= labelatzero2;
   keylegend 'dot' 'bar';
 run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-SGPanel-attributes/m-p/859005#M339410</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-02-15T17:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SGPanel attributes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-SGPanel-attributes/m-p/859007#M339411</link>
      <description>&lt;P&gt;Thank you for the response. Tried&amp;nbsp;rowaxis label='Enrollment Year' labelattrs=(family=arial size=10 weight=bold color=black) values=(2017 to 2022 by 1) REVERSE ;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still not working.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-SGPanel-attributes/m-p/859007#M339411</guid>
      <dc:creator>sms1891</dc:creator>
      <dc:date>2023-02-15T17:29:12Z</dc:date>
    </item>
  </channel>
</rss>

