<?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: Leading space was removed in forest plot by GTL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Leading-space-was-removed-in-forest-plot-by-GTL/m-p/803112#M22685</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A number of SAS graph statements automatically clear leading and trailing blanks.&amp;nbsp; You would have better luck adding another variable with the number of indents you would want and use the INDENT and INDENTWEIGHT options to get what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, shameless plug to my forest plot making macro:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/MVMODELS-a-Macro-for-Survival-and-Logistic-Analysis/ta-p/635217" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/MVMODELS-a-Macro-for-Survival-and-Logistic-Analysis/ta-p/635217&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 15:27:51 GMT</pubDate>
    <dc:creator>JeffMeyers</dc:creator>
    <dc:date>2022-03-21T15:27:51Z</dc:date>
    <item>
      <title>Leading space was removed in forest plot by GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Leading-space-was-removed-in-forest-plot-by-GTL/m-p/803101#M22683</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying to create a forest plot.&lt;/P&gt;
&lt;P&gt;However the leading space was removed in the figure.&lt;/P&gt;
&lt;P&gt;Anyone can help? Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a small part of my figure:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coooooo_Lee_3-1647875500508.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69619i10CED6FE6F30447B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coooooo_Lee_3-1647875500508.png" alt="Coooooo_Lee_3-1647875500508.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first column is aligned at left, but it does have blank in my dataset like&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coooooo_Lee_2-1647875000300.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69618i4AAF7ECBFE5FEF0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coooooo_Lee_2-1647875000300.png" alt="Coooooo_Lee_2-1647875000300.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the first part of my GTL code to define the first column:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;  
  DEFINE STATGRAPH Forest;

	begingraph;
	  layout lattice /columns=4 columnweights=(0.27 0.15 0.15 0.43);

		/*First column*/
    layout overlay / walldisplay=none xaxisopts=(display=none)
		  yaxisopts=(reverse=true display=none);
		  axistable y=obs value=txt / display=(values);
		endlayout;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried to use "A0"x&amp;nbsp; to replace the space with non blank space, however the value was trancated at some place.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Coooooo_Lee_4-1647875706874.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69620i4D28552C6F5C28F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Coooooo_Lee_4-1647875706874.png" alt="Coooooo_Lee_4-1647875706874.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 15:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Leading-space-was-removed-in-forest-plot-by-GTL/m-p/803101#M22683</guid>
      <dc:creator>Coooooo_Lee</dc:creator>
      <dc:date>2022-03-21T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Leading space was removed in forest plot by GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Leading-space-was-removed-in-forest-plot-by-GTL/m-p/803111#M22684</link>
      <description>&lt;P&gt;It looks like the INDENT option with INDENTWEIGHT may accomplish what you want. The Indentweight would be an expression to calculate a multiple of the indent amount for each value.&lt;/P&gt;
&lt;P&gt;If that doesn't work you could try replacing the spaces with NULL characters, ASCII-255.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many SAS procedures will display text justified to the left ignoring the more traditional "blank" space such as the space or tab character. The null character sometimes gets around that. You want to very carefully comment that is what you are doing as the code will not be obvious to anyone when you use this character.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 15:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Leading-space-was-removed-in-forest-plot-by-GTL/m-p/803111#M22684</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-21T15:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Leading space was removed in forest plot by GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Leading-space-was-removed-in-forest-plot-by-GTL/m-p/803112#M22685</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A number of SAS graph statements automatically clear leading and trailing blanks.&amp;nbsp; You would have better luck adding another variable with the number of indents you would want and use the INDENT and INDENTWEIGHT options to get what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, shameless plug to my forest plot making macro:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/MVMODELS-a-Macro-for-Survival-and-Logistic-Analysis/ta-p/635217" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/MVMODELS-a-Macro-for-Survival-and-Logistic-Analysis/ta-p/635217&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 15:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Leading-space-was-removed-in-forest-plot-by-GTL/m-p/803112#M22685</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2022-03-21T15:27:51Z</dc:date>
    </item>
  </channel>
</rss>

