<?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 Why the split option is not working in proc sgplot? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/585996#M18817</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to split the xasix values in two lines with PROC SGPLOT but it is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your idea.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sgplot data=trt;
  scatter x=vis y=mean/group=trt01an yerrorlower=lower yerrorupper=upper markerattrs=(symbol=circlefilled) ;
  series x=vis y=mean/group=trt markers markerattrs=(symbol=circlefilled) name='a';
  keylegend 'a'/location=outside position=BOTTOM;
  xaxis values=(1 2 3 4 5 6 7 8) VALUESDISPLAY=("Day 2" "Day 4" "Day 6" "Day 8" "Day 10" "24 hour post*the last dose" 
  "Exit*(Day 14)" "Follow up*(Day 17)")  FITPOLICY=SPLIT SPLITCHAR="*"  label='Planned Time Point' offsetmin=0.05 offsetmax=0.05;
  yaxis label='Mean of Change from Baseline with 95% CI';
run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="split.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32193i5CF4AFA39A2B64C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="split.png" alt="split.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2019 02:52:50 GMT</pubDate>
    <dc:creator>Lee_wan</dc:creator>
    <dc:date>2019-09-04T02:52:50Z</dc:date>
    <item>
      <title>Why the split option is not working in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/585996#M18817</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to split the xasix values in two lines with PROC SGPLOT but it is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your idea.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sgplot data=trt;
  scatter x=vis y=mean/group=trt01an yerrorlower=lower yerrorupper=upper markerattrs=(symbol=circlefilled) ;
  series x=vis y=mean/group=trt markers markerattrs=(symbol=circlefilled) name='a';
  keylegend 'a'/location=outside position=BOTTOM;
  xaxis values=(1 2 3 4 5 6 7 8) VALUESDISPLAY=("Day 2" "Day 4" "Day 6" "Day 8" "Day 10" "24 hour post*the last dose" 
  "Exit*(Day 14)" "Follow up*(Day 17)")  FITPOLICY=SPLIT SPLITCHAR="*"  label='Planned Time Point' offsetmin=0.05 offsetmax=0.05;
  yaxis label='Mean of Change from Baseline with 95% CI';
run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="split.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32193i5CF4AFA39A2B64C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="split.png" alt="split.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 02:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/585996#M18817</guid>
      <dc:creator>Lee_wan</dc:creator>
      <dc:date>2019-09-04T02:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why the split option is not working in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/586013#M18818</link>
      <description>&lt;P&gt;Hi and welcome to the SAS Communities &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you trying to achieve? Can you explain a bit further what your desired result looks like?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 06:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/586013#M18818</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-04T06:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why the split option is not working in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/586114#M18823</link>
      <description>&lt;P&gt;I believe the reason that you're getting the behavior you're getting is that a FITPOLICY of SPLIT does not work on a LINEAR axis. Try doing the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Since you're placing your data in equidistant locations, set TYPE=DISCRETE on the XAXIS.&lt;/P&gt;
&lt;P&gt;2. It appears that you always want to split on the "*", so use FITPOLICY=SPLITALWAYS instead of SPLIT. The SPLIT policy will happen only if there is a tick value collision while fitting.&lt;/P&gt;
&lt;P&gt;3. On the SCATTER and SERIES, set GROUPDISPLAY=CLUSTER. This will cluster each of your groups around each X value. Make sure your "vis" values are only 1-8, as it appears like the X values might be adjusted slightly to get the look in your picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/586114#M18823</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-09-04T13:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why the split option is not working in proc sgplot?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/586624#M18836</link>
      <description>&lt;P&gt;Amazing！ It's working!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very muck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're a Picasso in the SAS figure.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 05:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Why-the-split-option-is-not-working-in-proc-sgplot/m-p/586624#M18836</guid>
      <dc:creator>Lee_wan</dc:creator>
      <dc:date>2019-09-06T05:43:07Z</dc:date>
    </item>
  </channel>
</rss>

