<?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: Forest plot top column  being cutoff every other page on PDF output in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348704#M12120</link>
    <description>&lt;P&gt;Hi RW9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.. How &amp;amp;&amp;nbsp; where would I put in the hard break? would it be an ods start page=yes type thing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2017 13:54:18 GMT</pubDate>
    <dc:creator>TD1</dc:creator>
    <dc:date>2017-04-10T13:54:18Z</dc:date>
    <item>
      <title>Forest plot top column  being cutoff every other page on PDF output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348693#M12117</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8240i5E57E56FD89A54C1/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8241i84D352EA27877124/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capture2.PNG" title="Capture2.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have these forestplots and the top 'overall' coloum header is being cut off halfway as you can see every other page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you have a look at my code why this may be? &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Makes no sense as you why it is happening every other page when the code is exactly the same!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CODE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***graphing macro***;&lt;BR /&gt;%macro fplt (datin=, FN=, VZT=, chrt=, wht=, ftnx=);&lt;BR /&gt;proc datasets library=work Nolist; delete inxdat:; run; quit;&lt;/P&gt;&lt;P&gt;data inxdat01; set &amp;amp;datin.; where AVISITN=&amp;amp;VZT.; run;&lt;/P&gt;&lt;P&gt;%macro skip; *set up the template*;&lt;BR /&gt;**&lt;BR /&gt;* Forest plot template using a one-column outermost lattice layout.&lt;BR /&gt;* The header uses a nested lattice layout in the top side bar.&lt;BR /&gt;* An overlay layout makes up the main area below it.&lt;BR /&gt;* The left side table of values are axis tables placed inside&lt;BR /&gt;* inner margin of the overlay layout.&lt;BR /&gt;**; %mend skip;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table inxdat02 as&lt;BR /&gt;select min(Lower) as mxlow,&lt;BR /&gt;max(Upper) as mxupp&lt;BR /&gt;from inxdat01;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;%if &amp;amp;ftnx. ne EQIX %then %do;&lt;BR /&gt;data inxdat03;&lt;BR /&gt;set inxdat02;&lt;BR /&gt;rlow=(floor((mxlow/10)))*10;&lt;BR /&gt;rupp=(ceil((mxupp/10)))*10;&lt;BR /&gt;run;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;select rlow format=4. into:lowval trimmed from inxdat03;&lt;BR /&gt;select rupp format=4. into:uppval trimmed from inxdat03;&lt;BR /&gt;select Estimate format=8.4 into:reflx from inxdat01 where SubGroup='Overall';&lt;BR /&gt;quit;&lt;BR /&gt;%end;&lt;BR /&gt;%if &amp;amp;ftnx. = EQIX %then %do;&lt;BR /&gt;data inxdat03;&lt;BR /&gt;set inxdat02;&lt;BR /&gt;rlow=(floor((mxlow*10)))/10;&lt;BR /&gt;rupp=(ceil((mxupp*10)))/10;&lt;BR /&gt;run;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;select rlow format=4.1 into:lowval trimmed from inxdat03;&lt;BR /&gt;select rupp format=4.1 into:uppval trimmed from inxdat03;&lt;BR /&gt;select Estimate format=8.4 into:reflx from inxdat01 where SubGroup='Overall';&lt;BR /&gt;quit;&lt;BR /&gt;%end;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods path(prepend) work.templat(update);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph forestAxisTable;&lt;BR /&gt;dynamic _bandColor _headerColor;&lt;BR /&gt;begingraph ;&lt;/P&gt;&lt;P&gt;discreteattrmap name='text' / trimleading=true;&lt;BR /&gt;value '1' / textAttrs=(size=7 weight=bold);&lt;BR /&gt;value '2' / textAttrs=(color=gray size=6 weight=normal);&lt;BR /&gt;enddiscreteattrmap;&lt;/P&gt;&lt;P&gt;discreteattrvar attrvar=txtDAV var=id attrmap='text';&lt;/P&gt;&lt;P&gt;layout lattice / columns=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*--Column headers--*;&lt;BR /&gt;sidebar / align=top;&lt;BR /&gt;layout lattice / columns=2 columnweights=(0.55 0.45)&lt;BR /&gt;backgroundcolor=_headerColor opaque=true;&lt;BR /&gt;entry textAttrs=(size=8 weight=bold) hAlign=left "Subgroup"&lt;BR /&gt;hAlign=right " No. of Patients";&lt;BR /&gt;entry textAttrs=(size=8 weight=bold) hAlign=center "LS Mean Change from Baseline";&lt;BR /&gt;endLayout;&lt;BR /&gt;endsidebar;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Single cell with inner margins for left and right tables *;&lt;BR /&gt;layout overlay / xAxisOpts=(display=(line ticks tickvalues)&lt;BR /&gt;tickValueAttrs=(size=6 weight=bold)&lt;BR /&gt;labelAttrs=(size=6 weight=bold)&lt;BR /&gt;linearOpts=(tickValuePriority=true&lt;BR /&gt;%if &amp;amp;ftnx. ne EQIX %then %do;&lt;BR /&gt;tickValueSequence=(start=&amp;amp;lowval. end=&amp;amp;uppval. increment=10)&lt;BR /&gt;%end;&lt;BR /&gt;%if &amp;amp;ftnx. = EQIX %then %do;&lt;BR /&gt;tickValueSequence=(start=&amp;amp;lowval. end=&amp;amp;uppval. increment=.1)&lt;BR /&gt;%end;&lt;BR /&gt;)&lt;BR /&gt;offsetMin=0.1&lt;BR /&gt;)&lt;BR /&gt;yAxisOpts=(reverse=true display=none offsetMin=0) wallDisplay=none;&lt;/P&gt;&lt;P&gt;* Left-side table *;&lt;BR /&gt;innerMargin / align=left;&lt;BR /&gt;axisTable y=obsId value=subGroup / textGroup=txtDAV&lt;BR /&gt;indentWeight=indentwt ; *display=(values)*;&lt;BR /&gt;axisTable y=obsId value=mdl_n_c / ; *display=(values)*;&lt;BR /&gt;endInnerMargin;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* LS Means plot *&lt;BR /&gt;referenceLine y=ref / lineAttrs=(thickness=15 color=_bandColor);&lt;BR /&gt;scatterPlot y=obsId x=Estimate / markerAttrs=(symbol=squareFilled)&lt;BR /&gt;xErrorLower=Lower xErrorUpper=Upper errorBarCapShape=none;&lt;BR /&gt;referenceLine x=&amp;amp;reflx.;&lt;/P&gt;&lt;P&gt;endLayout; * overlay *;&lt;/P&gt;&lt;P&gt;endLayout; * lattice *;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro skip; *forest plot graphing*; %mend skip;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgrender data=inxdat01 template=forestAxisTable;&lt;BR /&gt;dynamic _bandColor='cxf0f0f0' _headerColor='cxd0d0d0';&lt;BR /&gt;title1 f='Courier' h=9pt " ";&lt;/P&gt;&lt;P&gt;footnote1 f='Courier' h=8pt j=l " ";&lt;BR /&gt;&lt;BR /&gt;%if %upcase(%substr(&amp;amp;ftnx, 1, 4)) eq QLQS %then %do;&lt;BR /&gt;footnote2 f='Courier' h=8pt j=l " ";&lt;BR /&gt;%end;&lt;BR /&gt;%if %upcase(%substr(&amp;amp;ftnx, 1, 4)) eq QLQF %then %do;&lt;BR /&gt;footnote2 f='Courier' h=8pt j=l " ";&lt;BR /&gt;%end;&lt;BR /&gt;%if %upcase(%substr(&amp;amp;ftnx, 1, 4)) eq EQVA %then %do;&lt;BR /&gt;footnote2 f='Courier' h=8pt j=l " ";&lt;BR /&gt;%end;&lt;BR /&gt;%if %upcase(%substr(&amp;amp;ftnx, 1, 4)) eq EQIX %then %do;&lt;BR /&gt;footnote2 f='Courier' h=8pt j=l " ";&lt;BR /&gt;%end;&lt;BR /&gt;&amp;amp;runlinea.;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%mend fplt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*ods listing image_dpi=300;&lt;/P&gt;&lt;P&gt;ods graphics / reset width=6in height=5.5in imagename='SAS94M2_ForestPlot_GTL';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPTIONS LEFTMARGIN=1.0in RIGHTMARGIN=1.0in TOPMARGIN=1.0in BOTTOMMARGIN=1.0in&lt;BR /&gt;FORMCHAR = '|----|+|---+=|-/&amp;lt;&amp;gt;*' nonumber nodate nocenter orientation=landscape;&lt;BR /&gt;ODS escapechar='^';&lt;BR /&gt;goptions reset=all;&lt;BR /&gt;goptions ftext="Courier";&lt;/P&gt;&lt;P&gt;*ods pdf file="&amp;amp;dirty.\test.pdf";&lt;BR /&gt;ods pdf file="x ";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***************************;&lt;BR /&gt;** COHORT A **;&lt;BR /&gt;*************************;&lt;BR /&gt;%fplt (datin=Fp01_1_1_1, FN=4.1.1.1.1, VZT=9, chrt=A, wht=xxxxxx, ftnx=QLQS);&lt;BR /&gt;%fplt (datin=Fp01_1_1_1, FN=4.1.1.1.2, VZT=17, chrt=A, wht=xxxxx, ftnx=QLQS);&lt;BR /&gt;%fplt (datin=Fp01_1_1_1, FN=4.1.1.1.3, VZT=25, chrt=A, wht=xxxxx, ftnx=QLQS);&lt;BR /&gt;%fplt (datin=Fp01_1_1_1, FN=4.1.1.1.4, VZT=33, chrt=A, wht=xxxxxx, ftnx=QLQS);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions will be appreciated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348693#M12117</guid>
      <dc:creator>TD1</dc:creator>
      <dc:date>2017-04-10T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Forest plot top column  being cutoff every other page on PDF output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348700#M12118</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, I don't have timme to debug all that. &amp;nbsp;What I would say from looking at the pages is that I guess each two pages are blocks from one set of output procedures. &amp;nbsp;As no page breaking is given, it will just flow over to the next page. &amp;nbsp;I would put a hard break in after each block (in our cases we also put a preceding blank row before and after the block to separate headings from data).&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348700#M12118</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-10T13:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Forest plot top column  being cutoff every other page on PDF output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348701#M12119</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, I don't have timme to debug all that. &amp;nbsp;What I would say from looking at the pages is that I guess each two pages are blocks from one set of output procedures. &amp;nbsp;As no page breaking is given, it will just flow over to the next page. &amp;nbsp;I would put a hard break in after each block (in our cases we also put a preceding blank row before and after the block to separate headings from data).&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348701#M12119</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-10T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Forest plot top column  being cutoff every other page on PDF output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348704#M12120</link>
      <description>&lt;P&gt;Hi RW9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.. How &amp;amp;&amp;nbsp; where would I put in the hard break? would it be an ods start page=yes type thing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348704#M12120</guid>
      <dc:creator>TD1</dc:creator>
      <dc:date>2017-04-10T13:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Forest plot top column  being cutoff every other page on PDF output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348706#M12121</link>
      <description>&lt;P&gt;The simplest way would be to split the outpu in the macro call, so page 1 is output by one call to render, then page 2 is created by another call. &amp;nbsp;That way each will appear on their own pages. &amp;nbsp;Without going through its hard to place where hard page breaks would be added.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/348706#M12121</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-10T13:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Forest plot top column  being cutoff every other page on PDF output</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/349027#M12126</link>
      <description>&lt;P&gt;Found a solution it seems!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by changing or deleting the y axis option offsetMin&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;yAxisOpts=(reverse=true display=none /*offsetMin=0*/ ) wallDisplay=none;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Its has worked and the top colum is not being cut off anymore &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 09:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forest-plot-top-column-being-cutoff-every-other-page-on-PDF/m-p/349027#M12126</guid>
      <dc:creator>TD1</dc:creator>
      <dc:date>2017-04-11T09:06:53Z</dc:date>
    </item>
  </channel>
</rss>

