<?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: Text rows uneven in forest plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/423217#M14584</link>
    <description>&lt;P&gt;Thanks, everyone--I was out yesterday so one of our plot gurus was called in to look at it.&amp;nbsp; Her solution:&amp;nbsp; make the dots smaller.&amp;nbsp; The size was knocking everything else out of whack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you have given me a lot of food for thought if I ever run into a similar situation where dot size doesn't help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2017 21:10:02 GMT</pubDate>
    <dc:creator>VCM</dc:creator>
    <dc:date>2017-12-21T21:10:02Z</dc:date>
    <item>
      <title>Text rows uneven in forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/422567#M14550</link>
      <description>&lt;P&gt;I'm working on a forest plot with several&amp;nbsp;columns of associated data. &amp;nbsp;The alignment is slightly off:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HR.png" style="width: 516px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17425i632743FAA7206C40/image-size/large?v=v2&amp;amp;px=999" role="button" title="HR.png" alt="HR.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that in the first row, the p-val is slightly lower than the HR/CI. &amp;nbsp;By the last row, the p-val sits higher than the HR/CI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code for the text columns from proc template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;layout overlay / xaxisopts=(display=none) 
yaxisopts=(reverse=true display=none) walldisplay=none;
scatterplot x=dummy y=ord / markercharacter=hr_ci;
endlayout; *** overlay - Hazard Ratio/CI column***;

layout overlay / xaxisopts=(display=none) 
yaxisopts=(reverse=true display=none) walldisplay=none;
scatterplot x=dummy y=ord / markercharacter=pval;
endlayout; *** overlay - p-value column ***;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Dummy is, as the name implies, a dummy value (= 1 for every record). &amp;nbsp;Ord is the numeric order of the rows. &amp;nbsp;The markercharacters hr_ci and pval are the character results you see above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to "straighten out" the row alignment?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 01:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/422567#M14550</guid>
      <dc:creator>VCM</dc:creator>
      <dc:date>2017-12-20T01:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Text rows uneven in forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/422584#M14553</link>
      <description>&lt;P&gt;Use axis tables.&amp;nbsp; There are many example of forest plots in the graphically speaking blog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 03:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/422584#M14553</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-20T03:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Text rows uneven in forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/422645#M14555</link>
      <description>&lt;P&gt;I have always used annotate for that: &lt;A href="http://documentation.sas.com/?docsetId=grstatgraph&amp;amp;docsetTarget=p0fnr3r0fc0jfjn1rtp6di3ygpom.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatgraph&amp;amp;docsetTarget=p0fnr3r0fc0jfjn1rtp6di3ygpom.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it can be a bit fidgety but you get things exactly where you want them&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 09:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/422645#M14555</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2017-12-20T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Text rows uneven in forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/423217#M14584</link>
      <description>&lt;P&gt;Thanks, everyone--I was out yesterday so one of our plot gurus was called in to look at it.&amp;nbsp; Her solution:&amp;nbsp; make the dots smaller.&amp;nbsp; The size was knocking everything else out of whack.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you have given me a lot of food for thought if I ever run into a similar situation where dot size doesn't help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 21:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/423217#M14584</guid>
      <dc:creator>VCM</dc:creator>
      <dc:date>2017-12-21T21:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Text rows uneven in forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/423218#M14585</link>
      <description>&lt;P&gt;I'm glad you got it worked out. If you don't switch to use axis tables, next time at least look into the TEXT statement (unless you are using a release from before it came out) as an alternative to SCATTER.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 21:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/423218#M14585</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-21T21:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Text rows uneven in forest plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/423229#M14586</link>
      <description>&lt;P&gt;Just an FYI...The three separate scatter statements cause different y-offsets due to size of markers and text.&amp;nbsp; As you increase marker size or text size), offsets increase, causing the alignment problems in different containers (Layout Overlays).&amp;nbsp; Each container with separate axes will have separate offsets based on their individual contents.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to overcome this is to set fixed offsets on all containers (yaxisopts=(offsetmin=0.05 offsetmax=0.05).&amp;nbsp; Or, use common row axes&amp;nbsp;to force all offsets to be the same.&amp;nbsp; This will also happen with TEXT plot or AXISTABLE.&amp;nbsp; One way to avoid this is to use only ONE Layout Overlay, and put the axis tables in the INNERMARGIN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your use case may be simple enough that you can use SGPLOT with a YAXISTABLE of two columns on the right side.&amp;nbsp; GTL may not be required.&amp;nbsp; See example here:&amp;nbsp;&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/05/30/ctspedia-clinical-graphs-subgrouped-forest-plot/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2016/05/30/ctspedia-clinical-graphs-subgrouped-forest-plot/&lt;/A&gt;.&amp;nbsp; Note the use of two yAxisTables on the left and one yAxisTable on the right with 3 variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 22:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Text-rows-uneven-in-forest-plot/m-p/423229#M14586</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-12-21T22:18:31Z</dc:date>
    </item>
  </channel>
</rss>

