<?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: SGPLOT Gaps between box plots in forest plots in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976784#M25705</link>
    <description>&lt;P&gt;Alternatively, you could follow&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0x0lpy0kekjobn19qimta9fb3tz.htm" target="_blank" rel="noopener"&gt;Example 2: Clustering a Grouped Scatter Plot&lt;/A&gt; from the documentation:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set forest_data;
series=1; a=a1; lowa=lowa1; uppera=uppera1; output;
series=2; a=a2; lowa=lowa2; uppera=uppera2; output;
drop a1--uppera2;
run;

proc sgplot data=want;
scatter x=XValue y=a / yerrorlower=lowa yerrorupper=uppera
  group=series groupdisplay=cluster clusterwidth=0.15;
yaxis label="Odds Ratio" ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Oct 2025 16:10:51 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2025-10-10T16:10:51Z</dc:date>
    <item>
      <title>SGPLOT Gaps between box plots in forest plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976773#M25701</link>
      <description>&lt;P&gt;How do we put a space between the two series?&amp;nbsp; The box plots are overlapping and is there a way to put some gap between them.&amp;nbsp; Sample code attached below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data forest_data;
 input Gp $ XValue a1 lowa1 uppera1 a2 lowa2 uppera2;
    datalines;
A 10 0.50 0.30 0.70 0.55 0.40 0.60&lt;BR /&gt;B 20 0.25 0.10 0.40 0.70 0.30 0.80&lt;BR /&gt;C 30 0.80 0.60 1.00 0.90 0.50 0.80
;
run;

proc sgplot data=forest_data;
     scatter x=XValue y=a1 / yerrorlower=lowa1 yerrorupper=uppera1;
        scatter x=XValue y=a2 / yerrorlower=lowa2 yerrorupper=uppera2;
     
    yaxis label="Odds Ratio" ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 15:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976773#M25701</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2025-10-10T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Gaps between box plots in forest plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976776#M25702</link>
      <description>&lt;P&gt;Do you mean something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data forest_data;
 input Gp $ XValue a1 lowa1 uppera1 a2 lowa2 uppera2;
  XValue2=XValue+1;
  XValue=XValue-1;
    datalines;
A 10 0.50 0.30 0.70 0.55 0.40 0.60 
B 20 0.25 0.10 0.40 0.70 0.30 0.80 
C 30 0.80 0.60 1.00 0.90 0.50 0.80
;
run;

proc sgplot data=forest_data;
     scatter x=XValue y=a1 / yerrorlower=lowa1 yerrorupper=uppera1;

     scatter x=XValue2 y=a2 / yerrorlower=lowa2 yerrorupper=uppera2;
     
    yaxis label="Odds Ratio" ;
    xaxis min=0 max=40 VALUES=(0 10 20 30 40)
    VALUESDISPLAY=(" " "10" "20" "30" " ")
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yabwon_0-1760110865076.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110534i6749C436E9BC7498/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yabwon_0-1760110865076.png" alt="yabwon_0-1760110865076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 15:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976776#M25702</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2025-10-10T15:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Gaps between box plots in forest plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976777#M25703</link>
      <description>Thanks so much Bart!!!!</description>
      <pubDate>Fri, 10 Oct 2025 15:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976777#M25703</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2025-10-10T15:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Gaps between box plots in forest plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976784#M25705</link>
      <description>&lt;P&gt;Alternatively, you could follow&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n0x0lpy0kekjobn19qimta9fb3tz.htm" target="_blank" rel="noopener"&gt;Example 2: Clustering a Grouped Scatter Plot&lt;/A&gt; from the documentation:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set forest_data;
series=1; a=a1; lowa=lowa1; uppera=uppera1; output;
series=2; a=a2; lowa=lowa2; uppera=uppera2; output;
drop a1--uppera2;
run;

proc sgplot data=want;
scatter x=XValue y=a / yerrorlower=lowa yerrorupper=uppera
  group=series groupdisplay=cluster clusterwidth=0.15;
yaxis label="Odds Ratio" ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Oct 2025 16:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976784#M25705</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-10-10T16:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Gaps between box plots in forest plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976789#M25706</link>
      <description>Just FYI, the common term for what you're talking about is "jitter", as in, "adding jitter" to the estimates.</description>
      <pubDate>Fri, 10 Oct 2025 17:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976789#M25706</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-10-10T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Gaps between box plots in forest plots</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976792#M25707</link>
      <description>&lt;P&gt;If the goal is to add space on either end of the axis, you can use OFFSETMIN and OFFSETMAX without having to create unused tick values. Just replace you XAXIS statement with the following (adjust the offset values to taste):&lt;/P&gt;
&lt;P&gt;xaxis offsetmin=0.1 offsetmax=0.1;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 18:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Gaps-between-box-plots-in-forest-plots/m-p/976792#M25707</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2025-10-10T18:16:53Z</dc:date>
    </item>
  </channel>
</rss>

