<?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: sgplot and dot procedure in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64560#M2178</link>
    <description>Hey Steve,&lt;BR /&gt;
&lt;BR /&gt;
There is currently not an orient option for the DOT plot, but you can work around this by pre-summarizing the data yourself and using the SCATTER statement in SGPLOT. Here is an example:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc summary data=sashelp.class nway;&lt;BR /&gt;
class age;&lt;BR /&gt;
var height;&lt;BR /&gt;
output out=meandata mean=mean_height lclm=lower uclm=upper;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sgplot data=meandata;&lt;BR /&gt;
xaxis grid;&lt;BR /&gt;
scatter x=age y=mean_height / yerrorupper=upper yerrorlower=lower &lt;BR /&gt;
        markerattrs=(symbol=circlefilled);&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Mon, 16 Aug 2010 20:44:09 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2010-08-16T20:44:09Z</dc:date>
    <item>
      <title>sgplot and dot procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64559#M2177</link>
      <description>I am trying to use the sgplot dot procedure to plot a numeric variable against a categorical variable with the dot as the mean and the standard error of the mean as the whisker.  I want the y axis to be the numeric variable and the x axis to be the categorical variable but SAS has it the other way.  Is there a simple axis statement that I can use to reorient this plot?</description>
      <pubDate>Mon, 16 Aug 2010 19:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64559#M2177</guid>
      <dc:creator>steve_f</dc:creator>
      <dc:date>2010-08-16T19:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot and dot procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64560#M2178</link>
      <description>Hey Steve,&lt;BR /&gt;
&lt;BR /&gt;
There is currently not an orient option for the DOT plot, but you can work around this by pre-summarizing the data yourself and using the SCATTER statement in SGPLOT. Here is an example:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc summary data=sashelp.class nway;&lt;BR /&gt;
class age;&lt;BR /&gt;
var height;&lt;BR /&gt;
output out=meandata mean=mean_height lclm=lower uclm=upper;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sgplot data=meandata;&lt;BR /&gt;
xaxis grid;&lt;BR /&gt;
scatter x=age y=mean_height / yerrorupper=upper yerrorlower=lower &lt;BR /&gt;
        markerattrs=(symbol=circlefilled);&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 16 Aug 2010 20:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64560#M2178</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2010-08-16T20:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot and dot procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64561#M2179</link>
      <description>Thanks a lot for your help, Dan,&lt;BR /&gt;
&lt;BR /&gt;
I also want to calculate the 95% confidence interval around a median for the data.  I was using proc boxplot where the notches are the 95% confidence interval for the median, but I don't need the interquartile range and whiskers.  Do you know of code to suppress everything but the confidence interval?  Alternately, I suppose I could simply used the formula in the help information of 1.58 * IQR * n ^ 1/2 similarly to what you suggested for the means.&lt;BR /&gt;
Steve</description>
      <pubDate>Tue, 17 Aug 2010 13:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64561#M2179</guid>
      <dc:creator>steve_f</dc:creator>
      <dc:date>2010-08-17T13:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: sgplot and dot procedure</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64562#M2180</link>
      <description>If you can't get the boxplot you want using 'proc boxplot' or 'proc gplot' (with interpol=box), etc ... here's an example you might can modify to create your own custom 'boxplot' in whatever way you want (using annotate move/draw commands):&lt;BR /&gt;
&lt;BR /&gt;
   &lt;A href="http://robslink.com/SAS/democd47/anno_boxplot.htm" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
   &lt;A href="http://robslink.com/SAS/democd47/anno_boxplot_info.htm" target="_blank"&gt;http://robslink.com/SAS/democd47/anno_boxplot_info.htm&lt;/A&gt;</description>
      <pubDate>Tue, 17 Aug 2010 14:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sgplot-and-dot-procedure/m-p/64562#M2180</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2010-08-17T14:56:27Z</dc:date>
    </item>
  </channel>
</rss>

