<?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: adjusting layout of forestplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/adjusting-layout-of-forestplot/m-p/701529#M214830</link>
    <description>&lt;P&gt;perfect! thank you very much&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 14:04:23 GMT</pubDate>
    <dc:creator>lillymaginta1</dc:creator>
    <dc:date>2020-11-25T14:04:23Z</dc:date>
    <item>
      <title>adjusting layout of forestplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adjusting-layout-of-forestplot/m-p/701489#M214822</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

%let gpath='.';
%let dpi=200;
ods html close;
ods listing gpath=&amp;amp;gpath image_dpi=&amp;amp;dpi;

/*--Add "Id" to identify subgroup headings from values--*/
data forest_subgroup;
  
  input Id Comparison $3-28 Count Percent Mean  Low  High  PCIGroup Group SampleSize;

  indentWt=1;
  ObsId=_n_; 
  datalines;

1   mm    1     .    .     .     .     .     .    . 
1   hh    1     .    .     .     .     .     .    .
1   rr    .     .   1.40  1.18  2.12   .     .    .
1   rr                   .     .    .     .     .     .     .    . 
2   tt    .     .   1.99  1.42  2.88   .     .    .   
2   yy    .     .   1.77  1.53  2.51   .     .    . 
2   xx    .     .   1.72  1.60  2.09   .     .    .


;
run;

/*ods html;*/
/*proc print;run;*/
/*ods html close;*/

/*--Set indent weight, add insets and horizontal bands--*/
data forest_subgroup_2;
  set forest_subgroup nobs=n end=last;
  length text $25;
  val=mod(_N_-1, 6);
  if val eq 1 then ref=count;

  /*--Separate Subgroup headers and obs into separate columns--*/
  indentwt=1;
  if id=1 then indentWt=0;

  output;
  if last then do;
    call missing (Comparison, count, percent, mean, low, high, 
                  pcigroup, group, countpct, indentwt, val, ref);
               obsid=n+1; 
    xl=0.4; yl=n+1; text=' '; output;;
        xl=1.7; yl=n+1; text=' '; output;
  end;
  run;





/*--Attribute maps for Subgroup Test attributes--*/
data attrmap;
  length textweight $10;
  id='text'; value='1'; textcolor='Black'; textsize=7; textweight='bold'; output;
  id='text'; value='2'; textcolor='Black'; textsize=5; textweight='normal'; output;
run;

/*--Forest Plot--*/
options missing=' ';
ods listing style=htmlBlue;
ods graphics / reset width=4in height=3in imagename='Subgroup_Forest';
proc sgplot data=forest_subgroup_2 nowall noborder nocycleattrs dattrmap=attrmap noautolegend;
 
  styleattrs axisextent=data;
  highlow y=obsid low=low high=high; 
  scatter y=obsid x=mean / markerattrs=(symbol=squarefilled);
  scatter y=obsid x=mean / markerattrs=(size=0) x2axis;
 refline ref/ lineattrs=(thickness=4 color=cxf0f0f0);
  refline 1/ axis=x;
  text x=xl y=obsid text=text / position=bottom contributeoffsets=none strip;
  yaxistable Comparison / location=inside position=left textgroup=id labelattrs=(size=8) 
             textgroupid=text indentweight=indentWt ;

  yaxis reverse  display=none colorbands=odd colorbandsattrs=(transparency=1) offsetmin=0.0;
  xAXIS TYPE=LOG LOGSTYLE=LOGEXPAND LOGBASE=10;
xaxis display=(nolabel) values=(  0.5 1.0 1.5 2.0 2.5 3.0);
  x2axis type=log label=' ' display=(noline noticks novalues) labelattrs=(size=8) ;

run;
run;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi Everyone, I am trying to remove the label of the y-axis "comparison" from the above code, any thought on how to do that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 11:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adjusting-layout-of-forestplot/m-p/701489#M214822</guid>
      <dc:creator>lillymaginta1</dc:creator>
      <dc:date>2020-11-25T11:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: adjusting layout of forestplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adjusting-layout-of-forestplot/m-p/701512#M214824</link>
      <description>&lt;P&gt;Label the table variable with a hard space 'A0'x&lt;/P&gt;
&lt;PRE&gt;label Comparison='A0'x;&lt;/PRE&gt;
&lt;P&gt;You can also use the null character '00'x&lt;/P&gt;
&lt;PRE&gt;label Comparison='00'x;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moderators: This should be moved to Graphics Programming ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 13:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adjusting-layout-of-forestplot/m-p/701512#M214824</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-11-25T13:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: adjusting layout of forestplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adjusting-layout-of-forestplot/m-p/701529#M214830</link>
      <description>&lt;P&gt;perfect! thank you very much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adjusting-layout-of-forestplot/m-p/701529#M214830</guid>
      <dc:creator>lillymaginta1</dc:creator>
      <dc:date>2020-11-25T14:04:23Z</dc:date>
    </item>
  </channel>
</rss>

