<?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: proc sgplot xaxistable in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/405241#M13850</link>
    <description>&lt;P&gt;Please attach sample data and full program so we can run it to see what is happening.&amp;nbsp; Also include SAS release number.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 14:59:15 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2017-10-18T14:59:15Z</dc:date>
    <item>
      <title>proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/405184#M13848</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a box plot which looks like below.&lt;/P&gt;&lt;P&gt;(my variables are different. My y axis is 'time to diagnosis' and x axis is 'categories' (1-7) which are grouped by 'diagnosis source' (A/B))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried following the SAS codes as shown in this blog (&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2015/12/23/box-plot-with-stat-table-and-markers/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2015/12/23/box-plot-with-stat-table-and-markers/&lt;/A&gt; ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am getting blanks ('.') in places where I should have my stats on top of the x axis.&lt;/P&gt;&lt;P&gt;Can anyone help me with this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://blogs.sas.com/content/graphicallyspeaking/files/2015/12/BoxStatScatterGroupMulti2.png" border="0" alt="Image result for sas sgplot boxplot side by side" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First,&lt;/STRONG&gt; I saved the outputs of the sgplot and only kept the statistics I wanted (q1,q3,median).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second,&lt;/STRONG&gt; I transposed data so that each statistics had one column.&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp; &amp;nbsp; category&amp;nbsp; &amp;nbsp; &amp;nbsp;group&amp;nbsp; &amp;nbsp; &amp;nbsp;q1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;q3&amp;nbsp; &amp;nbsp; &amp;nbsp; median&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; &amp;nbsp;num&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; &amp;nbsp;num&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; &amp;nbsp;num&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; &amp;nbsp;num&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; &amp;nbsp;num&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; num&amp;nbsp; &amp;nbsp; &amp;nbsp;num&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;etc.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Third,&lt;/STRONG&gt;&amp;nbsp;I merged this back onto my dataset (using the data set command)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fourth,&lt;/STRONG&gt; I ran the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=merged;
label q1='Q1' q3='Q3' median='Median';
format q1 q3 median best4.;
vbox time_to_diagnosis / category=category group=diagnosis_source nooutliers grouporder=ascending name='a';
xaxistable q1 / x=category class=diagnosis_source classdisplay=cluster colorgroup=diagnosis_source location=inside;
xaxistable q3 / x=category class=diagnosis_source classdisplay=cluster colorgroup=diagnosis_source location=inside;
xaxistable median / x=category class=diagnosis_source classdisplay=cluster colorgroup=diagnosis_source location=inside;
xaxis display=(nolabel);
yaxis label="Time (days)" values=(0 to 1825 by 365);
keylegend 'a' / linelength=24;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am getting blanks where I should have my stats...&lt;/P&gt;&lt;P&gt;I wonder if I have somehow messed up the dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/405184#M13848</guid>
      <dc:creator>Dani08</dc:creator>
      <dc:date>2017-10-19T09:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/405241#M13850</link>
      <description>&lt;P&gt;Please attach sample data and full program so we can run it to see what is happening.&amp;nbsp; Also include SAS release number.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:59:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/405241#M13850</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-18T14:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/405449#M13858</link>
      <description>&lt;P&gt;Hi Sanjay,&lt;BR /&gt;I attached a mock dataset for your information &amp;amp; I am using SAS 9.4.&lt;BR /&gt;Please let me know if you require anything else.&lt;BR /&gt;BW,&lt;BR /&gt;Dani&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 10:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/405449#M13858</guid>
      <dc:creator>Dani08</dc:creator>
      <dc:date>2017-10-19T10:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406012#M13868</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let gpath=C:\;
ods html close;
%let w=5in;
%let h=2.5in;
%let dpi=200;
ods listing gpath="&amp;amp;gpath" image_dpi=&amp;amp;dpi;

/*--Read xlsx--*/
proc import datafile='C:\mockdataforboxplot.xlsx'
dbms=xlsx out=BoxTable replace;
getnames=yes;
run;&lt;BR /&gt;
ods graphics / reset width=&amp;amp;w height=&amp;amp;h imagename='BoxTable';
title 'Time to DX by Category and Diagnosis Source';
proc sgplot data=boxtable noborder;
  format q1 q3 median 6.1;
  vbox time_to_dx / category=category group=diagnosis_source;
  xaxistable q3 median q1 / x=category class=diagnosis_source 
             location=inside classdisplay=cluster valueattrs=(size=8 weight=normal);
  yaxis display=(noline noticks) grid;
  xaxis display=(nolabel); 
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BoxTable.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16107i22AF5D139DF6365A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BoxTable.png" alt="BoxTable.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 15:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406012#M13868</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-20T15:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406376#M13875</link>
      <description>Dear Sanjay,&lt;BR /&gt;&lt;BR /&gt;Thank you very much!&lt;BR /&gt;I am sure this works, as can seen from the picture.&lt;BR /&gt;When I used the code for my dataset, I get the following error message:&lt;BR /&gt;&lt;BR /&gt;Warning: a very large output size of (30000, 15000) is in effect. This could make Java VM run out of memory and result in some JAVA exceptions. You should reduce output size or DPI settings.&lt;BR /&gt;&lt;BR /&gt;I have tried reducing dpi settings, but not sure how to reduce output size. My actual dataset is much larger than the mock one I attached, but I'm not sure if that is the problem here.</description>
      <pubDate>Sun, 22 Oct 2017 15:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406376#M13875</guid>
      <dc:creator>Dani08</dc:creator>
      <dc:date>2017-10-22T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406377#M13876</link>
      <description>&lt;P&gt;It is not complaining about the size of the data, but about the size of the output graph image (30,000px x 15,000px).&amp;nbsp; Check your WIDTH, HEIGHT and IMAGE_DPI settings.&amp;nbsp; You have not included that information in your post.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 15:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406377#M13876</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-22T15:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406838#M13891</link>
      <description>&lt;P&gt;Dear Sanjay,&lt;/P&gt;&lt;P&gt;The codes worked after adding these codes at the beginning:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, the the values are still empty....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="box.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16172i50F050C7ECFAFB26/image-size/large?v=v2&amp;amp;px=999" role="button" title="box.jpg" alt="box.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm really not sure what the problem is...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 08:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406838#M13891</guid>
      <dc:creator>Dani08</dc:creator>
      <dc:date>2017-10-24T08:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406935#M13892</link>
      <description>&lt;P&gt;It would appear your data for Q1, Q3 and median are missing.&amp;nbsp;&amp;nbsp;As I have said before, please attach your full code with sample data.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 13:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406935#M13892</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-24T13:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406941#M13893</link>
      <description>&lt;P&gt;Hi Sanjay,&lt;BR /&gt;I apologise for the inconvenience, but it is very difficult for me to attach the exact SAS codes or sample data as my analyses are being done on a secure/private network. So my data and the SAS programme are all on a different network which I cannot access from here. The computer I am using at the moment does not even have SAS!&lt;/P&gt;&lt;P&gt;But the mockdata is a similar format as my real data, and I have used the same codes as you have mentioned. I apologise for this inconvenience, and will try to figure out what may be wrong at my end.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 13:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406941#M13893</guid>
      <dc:creator>Dani08</dc:creator>
      <dc:date>2017-10-24T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot xaxistable</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406954#M13894</link>
      <description>&lt;P&gt;I understand your constraints.&amp;nbsp; &amp;nbsp;You do not need to upload the "real" confidential data.&amp;nbsp; Any small sample will do as long as it works with your code.&amp;nbsp; It is even better if you can use one of the SAS supplied data sets to demonstrate the problem (like my example).&amp;nbsp; This will make it easier for other users to help out.&amp;nbsp; Just guessing at what may be wrong based on small snippets of your code or data types may not be productive.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 14:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-xaxistable/m-p/406954#M13894</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-24T14:18:21Z</dc:date>
    </item>
  </channel>
</rss>

