<?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 Break X axis PROC SGPANEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943853#M369890</link>
    <description>&lt;P&gt;How do I break an axis in PROC SGPANEL? I need there to be less space where Month = 1 and Month = 3. Code follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgpanel data= plot_dat noautolegend;&lt;BR /&gt;panelby TRTA ACAT1 / rows=2 columns=2 sort=(descformat descformat);&lt;BR /&gt;styleattrs datasymbols=(CircleFilled) datacontrastcolors=(black) datalinepatterns=(solid);&lt;BR /&gt;rowaxis min= 0 max=30 VALUES= (0 to 30 by 5) VALUESHINT grid minor GRIDATTRS=(color=ltgray pattern=solid);&lt;BR /&gt;colaxis VALUES= (0 1 3 ) vALUESHINT grid minor minorcount=2 GRIDATTRS=(color=ltgray pattern=solid);&lt;BR /&gt;series x= MONTH y= AVAL / group= SUBJID lineattrs=(thickness=2 color= black pattern=solid) ;&lt;BR /&gt;scatter x= MONTH y= AVAL / group= SUBJID markerattrs=(size=6pt);&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2024 19:05:31 GMT</pubDate>
    <dc:creator>_Hopper</dc:creator>
    <dc:date>2024-09-13T19:05:31Z</dc:date>
    <item>
      <title>Break X axis PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943853#M369890</link>
      <description>&lt;P&gt;How do I break an axis in PROC SGPANEL? I need there to be less space where Month = 1 and Month = 3. Code follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgpanel data= plot_dat noautolegend;&lt;BR /&gt;panelby TRTA ACAT1 / rows=2 columns=2 sort=(descformat descformat);&lt;BR /&gt;styleattrs datasymbols=(CircleFilled) datacontrastcolors=(black) datalinepatterns=(solid);&lt;BR /&gt;rowaxis min= 0 max=30 VALUES= (0 to 30 by 5) VALUESHINT grid minor GRIDATTRS=(color=ltgray pattern=solid);&lt;BR /&gt;colaxis VALUES= (0 1 3 ) vALUESHINT grid minor minorcount=2 GRIDATTRS=(color=ltgray pattern=solid);&lt;BR /&gt;series x= MONTH y= AVAL / group= SUBJID lineattrs=(thickness=2 color= black pattern=solid) ;&lt;BR /&gt;scatter x= MONTH y= AVAL / group= SUBJID markerattrs=(size=6pt);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 19:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943853#M369890</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-09-13T19:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Break X axis PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943858#M369893</link>
      <description>&lt;P&gt;By " I need there to be less space where Month = 1 and Month = 3." are you trying to make the whole axis shorter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can make the major tick marks equally spaced by using TYPE=DISCRETE on the COLAXIS statement but then the MINOR ticks go away. I do have to say that it sounds very odd to force 2 tick marks between values of a variable called Month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you doing something odd with the overall size of the graph as a break would normally be desired where there is quite a range of values that would typically display on the xaxis without any y values for those. Skipping exactly one value in the range 0 to 3 sounds odd.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 19:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943858#M369893</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-13T19:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Break X axis PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943862#M369896</link>
      <description>&lt;P&gt;1. There are no data at month 2 so why have an axis point there? It is of no consequence and my customer does not want it.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Yes - I want less space between 1 and 3, e.g. an axis break.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 20:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943862#M369896</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-09-13T20:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Break X axis PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943868#M369900</link>
      <description>A discrete axis does not work because there are non-integer values on the time axis such as Day 1, 7, 14, etc. and my customer wants to see Month on the time axis.</description>
      <pubDate>Fri, 13 Sep 2024 20:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943868#M369900</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2024-09-13T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Break X axis PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943878#M369906</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/436465"&gt;@_Hopper&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;A discrete axis does not work because there are non-integer values on the time axis such as Day 1, 7, 14, etc. and my customer wants to see Month on the time axis.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since your COLAXIS statement as shown in the code is&lt;/P&gt;
&lt;PRE&gt;colaxis VALUES= (0 1 3 ) vALUESHINT grid minor minorcount=2 GRIDATTRS=(color=ltgray pattern=solid);&lt;/PRE&gt;
&lt;P&gt;I have a very hard time believing that Day 1, 7 or anything actually appears on the graph unless you are using an annotate data set or something else. There chan be tick marks between 0 and 1 (2 exactly) but there is not going to be a label.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll believe that you don't want to use discrete.&lt;/P&gt;
&lt;P&gt;SGPANEL and the COLAXIS do not apparently support the RANGE option that an XAXIS or YAXIS statement would use to create the breaks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suggestion: Provide a data step with some actual data and what you expect the result to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 22:50:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943878#M369906</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-13T22:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Break X axis PROC SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943939#M369920</link>
      <description>&lt;P&gt;You can change the month value 1&amp;nbsp; into 2.5 and display it as month 2 by valuesdisplay= option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. You'd better post a real dataset and desired output graph to better illustrate your question, Otherwise,I would&amp;nbsp; guess what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(123);
do TRTA=1,2;
 do ACAT1=1,2;
   do SUBJID=1,2;
   do month=0,2.5,3;
     aval=rand('integer',0,30);
	 output;
   end;
   end;
 end;
end;
run;


proc sgpanel data= have noautolegend;
panelby TRTA ACAT1 / rows=2 columns=2 sort=(descformat descformat);
styleattrs datasymbols=(CircleFilled) datacontrastcolors=(black) datalinepatterns=(solid);
rowaxis min= 0 max=30 VALUES= (0 to 30 by 5) VALUESHINT grid minor GRIDATTRS=(color=ltgray pattern=solid)  ;
colaxis VALUES= (0 2.5 2.8 3 ) valuesdisplay=('0' '1' '2'  '3') vALUESHINT grid minor minorcount=2 GRIDATTRS=(color=ltgray pattern=solid) ;
series x= MONTH y= AVAL / group= SUBJID lineattrs=(thickness=2 color= black pattern=solid) ;
scatter x= MONTH y= AVAL / group= SUBJID markerattrs=(size=6pt);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726297222447.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100358iC8133374403CB347/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726297222447.png" alt="Ksharp_0-1726297222447.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2024 01:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Break-X-axis-PROC-SGPANEL/m-p/943939#M369920</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-15T01:34:25Z</dc:date>
    </item>
  </channel>
</rss>

