<?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 AXIS statement for PROC BOXPLOT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/AXIS-statement-for-PROC-BOXPLOT/m-p/630589#M186682</link>
    <description>&lt;P&gt;Hi, I opened a ticket with SAS Tech Support one week ago and they have not been able to help me.&amp;nbsp; I am trying to use an AXIS statement with PROC BOXPLOT and what I am specifying in the AXIS statement does not appear in the resulting output (in either the .lst file or the .rtf file).&amp;nbsp; Here is the code that I am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol color = blue h = .8;&lt;BR /&gt;goptions ftext=swiss cback=white;&lt;BR /&gt;axis1 minor=none color=black label=(angle=90 rotate=0);&lt;BR /&gt;axis2 label=none /*order=(1 to 2 by 1)*/ major=(h=.8) value=(t=1 h=3 j=c "(N=&amp;amp;phase1)" t=2 h=3 j=c "(N=&amp;amp;phase2)");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title 'Box Plot for Infusion Duration by Phase';&lt;BR /&gt;proc boxplot data=phase;&lt;BR /&gt;plot INF_DURN * PHASE_ENRL/ cframe = vligb&lt;BR /&gt;cboxes = dagr&lt;BR /&gt;cboxfill = ywh&lt;BR /&gt;vaxis = axis1&lt;BR /&gt;haxis = axis2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The axis1 statement (for the vaxis) works just fine.&amp;nbsp; However, the axis2 statement (for the haxis) has absolutely no effect.&amp;nbsp; What I am trying to do is show the number of subjects in the two groups on the horizontal axis.&amp;nbsp; I create macro variables for &amp;amp;phase1 and &amp;amp;phase2.&amp;nbsp; When I run the program using the SYMBOLGEN option it shows that these two marcro variables do resolve.&amp;nbsp; So that is not the problem.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2020 08:20:28 GMT</pubDate>
    <dc:creator>cgsmaok56</dc:creator>
    <dc:date>2020-03-09T08:20:28Z</dc:date>
    <item>
      <title>AXIS statement for PROC BOXPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AXIS-statement-for-PROC-BOXPLOT/m-p/630589#M186682</link>
      <description>&lt;P&gt;Hi, I opened a ticket with SAS Tech Support one week ago and they have not been able to help me.&amp;nbsp; I am trying to use an AXIS statement with PROC BOXPLOT and what I am specifying in the AXIS statement does not appear in the resulting output (in either the .lst file or the .rtf file).&amp;nbsp; Here is the code that I am using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;symbol color = blue h = .8;&lt;BR /&gt;goptions ftext=swiss cback=white;&lt;BR /&gt;axis1 minor=none color=black label=(angle=90 rotate=0);&lt;BR /&gt;axis2 label=none /*order=(1 to 2 by 1)*/ major=(h=.8) value=(t=1 h=3 j=c "(N=&amp;amp;phase1)" t=2 h=3 j=c "(N=&amp;amp;phase2)");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title 'Box Plot for Infusion Duration by Phase';&lt;BR /&gt;proc boxplot data=phase;&lt;BR /&gt;plot INF_DURN * PHASE_ENRL/ cframe = vligb&lt;BR /&gt;cboxes = dagr&lt;BR /&gt;cboxfill = ywh&lt;BR /&gt;vaxis = axis1&lt;BR /&gt;haxis = axis2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The axis1 statement (for the vaxis) works just fine.&amp;nbsp; However, the axis2 statement (for the haxis) has absolutely no effect.&amp;nbsp; What I am trying to do is show the number of subjects in the two groups on the horizontal axis.&amp;nbsp; I create macro variables for &amp;amp;phase1 and &amp;amp;phase2.&amp;nbsp; When I run the program using the SYMBOLGEN option it shows that these two marcro variables do resolve.&amp;nbsp; So that is not the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 08:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AXIS-statement-for-PROC-BOXPLOT/m-p/630589#M186682</guid>
      <dc:creator>cgsmaok56</dc:creator>
      <dc:date>2020-03-09T08:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: AXIS statement for PROC BOXPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AXIS-statement-for-PROC-BOXPLOT/m-p/630606#M186694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/193347"&gt;@cgsmaok56&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this AXIS statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;axis2 label=(h=2 "Group") order=(1 to 2)
      major=(h=.8) value=(t=1 h=2 "1" j=c h=2 "(N=&amp;amp;phase1)"
                          t=2 h=2 "2" j=c h=2 "(N=&amp;amp;phase2)");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and values of 123 and 456 for the two macro variables I obtain this x-axis:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x_axis.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36708iBE7D855C1F024864/image-size/large?v=v2&amp;amp;px=999" role="button" title="x_axis.png" alt="x_axis.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(using Windows SAS 9.4M5 and a sample dataset PHASE containing values 1 and 2 for variable PHASE_ENRL and random INF_DURN values).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you could keep your &lt;FONT face="courier new,courier"&gt;label=none&lt;/FONT&gt; and use, e.g., "group 1" and "group 2" (rather than "1" and "2") as tick mark labels.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 11:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AXIS-statement-for-PROC-BOXPLOT/m-p/630606#M186694</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-09T11:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: AXIS statement for PROC BOXPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/AXIS-statement-for-PROC-BOXPLOT/m-p/630637#M186709</link>
      <description>Thank you. The solution worked.&lt;BR /&gt;&lt;BR /&gt;Carey&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Mar 2020 14:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/AXIS-statement-for-PROC-BOXPLOT/m-p/630637#M186709</guid>
      <dc:creator>cgsmaok56</dc:creator>
      <dc:date>2020-03-09T14:02:14Z</dc:date>
    </item>
  </channel>
</rss>

