<?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: Splitting the format in proc boxplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168516#M6273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are working on sas9.2 , you can use split option in the axis statement of x-axis. something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=none split=',';&lt;/P&gt;&lt;P&gt;proc boxplot data=have;&lt;/P&gt;&lt;P&gt;plot y*x / haxis=axis1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The split=',' we can mention the desired split character we have used. It will split the line to different rows where the split character is given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 02:24:27 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2014-10-07T02:24:27Z</dc:date>
    <item>
      <title>Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168514#M6271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a format which has a "," as a delimiter. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value cat&amp;nbsp;&amp;nbsp; 1 = "First, Second"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 = "Third, Last";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can split the text in two lines while using Proc BoxPlot? I am applying the format on the x-variable of the Box Plot which has values 1 and 2. So, I would like the x axis to split in two rows i.e. "First" and "Second" should display in two different rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 17:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168514#M6271</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2014-10-01T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168515#M6272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of SAS are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 20:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168515#M6272</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-10-01T20:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168516#M6273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are working on sas9.2 , you can use split option in the axis statement of x-axis. something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=none split=',';&lt;/P&gt;&lt;P&gt;proc boxplot data=have;&lt;/P&gt;&lt;P&gt;plot y*x / haxis=axis1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The split=',' we can mention the desired split character we have used. It will split the line to different rows where the split character is given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 02:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168516#M6273</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-10-07T02:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168517#M6274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below statements (as an example) but still the axis is not getting split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value cat&amp;nbsp;&amp;nbsp; 1 = "First, Name"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 = "Last, Name";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=legend;&lt;/P&gt;&lt;P&gt;goptions reset=all;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;goptions display hby=2 fby=arial;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=none&lt;/P&gt;&lt;P&gt;value = (h=2)&lt;/P&gt;&lt;P&gt;color&amp;nbsp; = black;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis2 label=(f=arial h=1.5 "Categories")&lt;/P&gt;&lt;P&gt;split = ","&lt;/P&gt;&lt;P&gt;order = 1 to 2 by 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc boxplot data =test; &lt;/P&gt;&lt;P&gt;format x cat.;&lt;/P&gt;&lt;P&gt;plot y*x /vaxis=axis1 haxis=axis2 ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 16:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168517#M6274</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2014-10-07T16:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168518#M6275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please try to format the variable in the dataset test prior passing it into the boxplot procedure. i believe this might work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 16:36:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168518#M6275</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-10-07T16:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168519#M6276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think the axis "split=" option is supported in Proc Boxplot. It is supported in SAS/Graph Proc Gplot, in which you could use interpol=box. Here's a short example that demonstrates both of the above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=sashelp.class out=foo;&lt;/P&gt;&lt;P&gt;by sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data foo; set foo;&lt;/P&gt;&lt;P&gt;if sex='F' then category=1;&lt;/P&gt;&lt;P&gt;if sex='M' then category=2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value cat&amp;nbsp;&amp;nbsp; 1 = "First, Second"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 = "Third, Last";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 split=',';&lt;/P&gt;&lt;P&gt;proc boxplot data=foo;&lt;/P&gt;&lt;P&gt;format category cat.;&lt;/P&gt;&lt;P&gt;plot height*category / haxis=axis1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=dot interpol=box;&lt;/P&gt;&lt;P&gt;axis1 split=',' offset=(8,8);&lt;/P&gt;&lt;P&gt;proc gplot data=foo;&lt;/P&gt;&lt;P&gt;format category cat.;&lt;/P&gt;&lt;P&gt;plot height*category / haxis=axis1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 17:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168519#M6276</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-10-07T17:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168520#M6277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Robert mentioned if the split option in the axis statement is not working then probably it is not available in proc boxplot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively if you would still continue to use proc boxplot then you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=(f=arial h=1.5 "Categories") value=(t=1 j=c "First" j=c "Name" &lt;/P&gt;&lt;P&gt;t=2 j=c "Second" j=c "Name" );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc boxplot data=have;&lt;/P&gt;&lt;P&gt;plot y*x / haxis=axis1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 01:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168520#M6277</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-10-08T01:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168521#M6278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have SAS 9.4, another possibility is to use the splitting abilities in the the SG procedures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value $cat "M"="First, Second"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "F"="Third, Last"&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;format sex $cat.;&lt;/P&gt;&lt;P&gt;xaxis splitchar="," fitpolicy=splitalways;&lt;/P&gt;&lt;P&gt;vbox height / category=sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=sashelp.class;&lt;/P&gt;&lt;P&gt;format sex $cat.;&lt;/P&gt;&lt;P&gt;xaxis splitchar="," fitpolicy=splitalways splitcharnodrop;&lt;/P&gt;&lt;P&gt;vbox height / category=sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 16:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168521#M6278</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-10-08T16:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting the format in proc boxplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168522#M6279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 22:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Splitting-the-format-in-proc-boxplot/m-p/168522#M6279</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2014-10-08T22:33:07Z</dc:date>
    </item>
  </channel>
</rss>

