<?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: Forrest Plot not displaying data (PROC TEMPLATE) in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618914#M19345</link>
    <description>&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feed back. I have been using this program/template for a while w/o any issues until now. So I dont remember the source of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, I spent quite a few time with trial and error and found a solution in the format, which to me is really weird&amp;nbsp; - something I am not understanding. Please let me know if you can help me understand it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So , for the subgroup that I was having issue with, I had created a user defined formats. (I had done this for every subgroup in the table). Below is the format for the subgroup I am having issue with.&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value LINEPTXN 1= "1" 2= &lt;STRONG&gt;"&amp;gt;=2"&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;With this format, I having the issue of category "&amp;gt;=2" not displaying in the rtf (attached as forrest1.docx in the original comment).&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I change the format to add a space before &amp;gt;=2, it works!&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value LINEPTXN 1= "1" 2= &lt;STRONG&gt;" &amp;gt;=2"; &lt;/STRONG&gt;/*Please note a space before &amp;gt;= here vs the the first format w/o the space */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kuldeep&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 18:21:11 GMT</pubDate>
    <dc:creator>KuldeepThakuri</dc:creator>
    <dc:date>2020-01-21T18:21:11Z</dc:date>
    <item>
      <title>Forrest Plot not displaying data (PROC TEMPLATE)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618457#M19331</link>
      <description>&lt;P&gt;Dear Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created an input data set to produce a forrest plot (input data set attached as forrest.xlsx).&amp;nbsp; The input dataset is in the exact format that I want my forrest plot to be. My code works as expected except that row number #22 (subgrp='Therapy*,' value '&amp;gt;=2') doesnt show up in the rtf output. The output is attached (forrest1.docx) and as you can see subgrp= "&amp;gt;=2"' doesnt show up in the rtf.&amp;nbsp; When I dug further it seems like there is a tons of space between the row values.&amp;nbsp; For example, when I run my code by restricting the input data for subgrp='Therapy*' only, my output looks like attached forrest2.docx.&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code:&lt;/P&gt;&lt;P&gt;(please note data final in proc sgrender is the forrest.xlsx dataset attached)&lt;/P&gt;&lt;P&gt;%let v21=20;&lt;BR /&gt;%let v22=70;&lt;BR /&gt;proc template;&lt;BR /&gt;define statgraph Forest_Plot2_with_Subgroups;&lt;BR /&gt;dynamic _color;&lt;BR /&gt;begingraph / axislineextent=data;&lt;/P&gt;&lt;P&gt;entryfootnote halign=center textattrs=(size=8 ) "Cohort 2 Subjects (N=50)";&lt;BR /&gt;entryfootnote halign=left textattrs=(size=8 ) " ";&lt;BR /&gt;entryfootnote halign=left textattrs=(size=8 )&lt;BR /&gt;"Note: Subgroup analysis by baseline weight (&amp;lt;=100 vs. &amp;gt;100 kg) is not performed because number of subjects in the &amp;gt;100 kg subgroup is less than 5.";&lt;BR /&gt;discreteAttrmap name='text';&lt;BR /&gt;value 'G' / textattrs=(weight=bold);&lt;BR /&gt;value other;&lt;BR /&gt;endDiscreteAttrmap;&lt;BR /&gt;discreteAttrvar attrvar=type var=type attrmap='text';&lt;/P&gt;&lt;P&gt;layout lattice / columns=1;&lt;/P&gt;&lt;P&gt;/*--Column headers--*/&lt;BR /&gt;sidebar / align=top;&lt;BR /&gt;layout lattice / columns=4 columnweights=(0.25 0.07 0.15 0.53);&lt;BR /&gt;entry textattrs=(size=8 /*weight=bold*/ color=darkblue) halign=left "Subgroup";&lt;BR /&gt;entry textattrs=(size=8 /*weight=bold*/ color=darkblue) halign=center "n/N" ;&lt;BR /&gt;entry textattrs=(size=8 /*weight=bold*/ color=darkblue) halign=left "% (95% CI)";&lt;BR /&gt;entry textattrs=(size=8 /*weight=bold*/ color=darkblue) halign=center "ORR, % (95% CI)";&lt;BR /&gt;endlayout;&lt;BR /&gt;endsidebar;&lt;/P&gt;&lt;P&gt;/*--Fourth column showing ORR graph--*/&lt;BR /&gt;layout overlay / xaxisopts=(display=(ticks tickvalues line)&lt;BR /&gt;tickvalueattrs=(size=7) linearopts=(tickvaluepriority=true&lt;BR /&gt;tickvaluelist=(0 10 20 30 40 50 60 70 80)))&lt;BR /&gt;yaxisopts=(reverse=true display=none offsetmax=0.02) walldisplay=none;&lt;/P&gt;&lt;P&gt;/*--Draw color Bands--*/&lt;BR /&gt;referenceline y=ref / lineattrs=(thickness=14 color=_color);&lt;BR /&gt;referenceline x=eval(coln(&amp;amp;v21, &amp;amp;v22))/ lineattrs=(pattern=shortdash) datatransparency=0.5;&lt;/P&gt;&lt;P&gt;/*--Draw ORR --*/&lt;BR /&gt;scatterplot y=subgrp x=pcnt / xerrorlower=low xerrorupper=high&lt;BR /&gt;markerattrs=(symbol=squarefilled color=darkblue) errorbarattrs=(color=black) /*errorbarcapshape=none*/;&lt;/P&gt;&lt;P&gt;/*--Draw axis labels--*/&lt;/P&gt;&lt;P&gt;/*--Draw subgrp, Patient Count, CI columns--*/&lt;BR /&gt;innermargin / align=left;&lt;BR /&gt;axistable y=subgrp value=subgrp / indentweight=indent textgroup=type display=(values) valueattrs=(size=7);&lt;BR /&gt;axistable y=subgrp value=ORR / display=(values) valueattrs=(size=7);&lt;BR /&gt;axistable y=subgrp value=CI / display=(values) valueattrs=(size=7);&lt;BR /&gt;endinnermargin;&lt;BR /&gt;endlayout;&lt;BR /&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&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;&lt;P&gt;options nodate nonumber orientation=landscape;&lt;BR /&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods rtf style=foreststyle file="&amp;amp;outdir\check.rtf" nogfootnote nogtitle bodytitle toc_data headery=720 footery=720;&lt;/P&gt;&lt;P&gt;ods graphics / reset imagename="fplot" attrpriority=none&lt;BR /&gt;height=7.8in width=7in&lt;BR /&gt;imagefmt=png&lt;BR /&gt;border=on;&lt;BR /&gt;ods proclabel=' ';&lt;/P&gt;&lt;P&gt;proc sgrender data=final template=Forest_Plot2_with_Subgroups;&lt;BR /&gt;dynamic _color='cxf0f0f0';&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 05:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618457#M19331</guid>
      <dc:creator>KuldeepThakuri</dc:creator>
      <dc:date>2020-01-20T05:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Forrest Plot not displaying data (PROC TEMPLATE)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618660#M19334</link>
      <description>&lt;P&gt;Is it possible that the data values contain extra space characters? &lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/09/30/forest-plot-with-subgroups/" target="_self"&gt;Sanjay discusses space characters in the context of Forest plots in this article.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you get the template from somewhere else? If so, please provide a link to the original source.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 19:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618660#M19334</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-20T19:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Forrest Plot not displaying data (PROC TEMPLATE)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618914#M19345</link>
      <description>&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the feed back. I have been using this program/template for a while w/o any issues until now. So I dont remember the source of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, I spent quite a few time with trial and error and found a solution in the format, which to me is really weird&amp;nbsp; - something I am not understanding. Please let me know if you can help me understand it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So , for the subgroup that I was having issue with, I had created a user defined formats. (I had done this for every subgroup in the table). Below is the format for the subgroup I am having issue with.&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value LINEPTXN 1= "1" 2= &lt;STRONG&gt;"&amp;gt;=2"&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;With this format, I having the issue of category "&amp;gt;=2" not displaying in the rtf (attached as forrest1.docx in the original comment).&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I change the format to add a space before &amp;gt;=2, it works!&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value LINEPTXN 1= "1" 2= &lt;STRONG&gt;" &amp;gt;=2"; &lt;/STRONG&gt;/*Please note a space before &amp;gt;= here vs the the first format w/o the space */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kuldeep&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 18:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618914#M19345</guid>
      <dc:creator>KuldeepThakuri</dc:creator>
      <dc:date>2020-01-21T18:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Forrest Plot not displaying data (PROC TEMPLATE)</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618947#M19346</link>
      <description>&lt;P&gt;Be advised that the message windows on this forum strip out white space characters in many instances.&lt;/P&gt;
&lt;P&gt;You need to post code containg spaces in a code box opened with the {i} other wise both of your example lines look like&lt;/P&gt;
&lt;P&gt;value LINEPTXN 1= "1" 2= &lt;STRONG&gt;"&amp;gt;=2"&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example: In code box:&lt;/P&gt;
&lt;PRE&gt;value LINEPTXN 1= "1" 2=     "&amp;gt;=2";
value LINEPTXN 1= "1" 2= "&amp;gt;=2";&lt;/PRE&gt;
&lt;P&gt;without&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000" face="SAS Monospace" size="2"&gt;value&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; LINEPTXN &lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;"1"&lt;/FONT&gt; &lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;2&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;"&amp;gt;=2"&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000" face="SAS Monospace" size="2"&gt;value&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; LINEPTXN &lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;"1"&lt;/FONT&gt; &lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;2&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;"&amp;gt;=2"&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 20:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Forrest-Plot-not-displaying-data-PROC-TEMPLATE/m-p/618947#M19346</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-21T20:05:24Z</dc:date>
    </item>
  </channel>
</rss>

