<?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 / custom scale for xaxis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438849#M15135</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks Sanjay. Commenting out min=0 resulted in widened 95CI. Desirable plot is narrow and tall CI95 as shown in plot 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=p.alb_conc;
   scatter y=Risk x=Rate/ xerrorlower=LowerCL xerrorupper=UpperCL
           markerattrs=(symbol=diamondfilled)
           group=Type groupdisplay=cluster;
/*   xaxis grid min=0.004;*/
   yaxis grid colorbands=odd discreteorder=data type=discrete;
   label Rate = "Rate";
   title 'hi';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Feb 2018 02:12:49 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2018-02-21T02:12:49Z</dc:date>
    <item>
      <title>proc sgplot / custom scale for xaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438836#M15129</link>
      <description>&lt;P&gt;I'd like to create a Plot 1 without the empty space with no information.&amp;nbsp;Ideally, I want to&amp;nbsp;show xaxis only for the range of 0.004-0.006 keeping CI95% brackets as narrow as shown in plot1. However,&amp;nbsp;every time I use min, max, offsetmin, offsetmax options or&amp;nbsp;values=from to by, or xaxis min=0.004&amp;nbsp;options&amp;nbsp;in the code, 95%CI brackets become so wide as shown in&amp;nbsp;Plot 2&amp;nbsp;which&amp;nbsp;is not desirable. Please help how to create Plot 1 but without the empty space in front.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plot 1. Desirable dimension and style of plot for narrow CI95%.&amp;nbsp;But I&amp;nbsp;would like to eliminate the&amp;nbsp;space without information until from 0 to&amp;nbsp;0.004&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CI95.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18724i22FC5BFCC0A16F60/image-size/large?v=v2&amp;amp;px=999" role="button" title="CI95.png" alt="CI95.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plot 2. Undesirable style&amp;nbsp;but resulted from code with xaxis&amp;nbsp;min=0.004&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="undesired.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18726iAA75822897450F5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="undesired.png" alt="undesired.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;k&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=data;
   scatter y=Risk x=Rate/ xerrorlower=LowerCL xerrorupper=UpperCL
           markerattrs=(symbol=diamondfilled)
           group=Type groupdisplay=cluster;
   xaxis grid min=0;
   yaxis grid colorbands=odd discreteorder=data type=discrete;
   label Rate = "Rate";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 00:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438836#M15129</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-02-21T00:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot / custom scale for xaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438845#M15133</link>
      <description>&lt;P&gt;Don't set the min=0 on the xaxis statement.&amp;nbsp; Then you will not get the empty space.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The CI bar widths depend on the values in the data you are providing and scaled with the x-axis.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 02:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438845#M15133</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-02-21T02:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot / custom scale for xaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438849#M15135</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks Sanjay. Commenting out min=0 resulted in widened 95CI. Desirable plot is narrow and tall CI95 as shown in plot 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=p.alb_conc;
   scatter y=Risk x=Rate/ xerrorlower=LowerCL xerrorupper=UpperCL
           markerattrs=(symbol=diamondfilled)
           group=Type groupdisplay=cluster;
/*   xaxis grid min=0.004;*/
   yaxis grid colorbands=odd discreteorder=data type=discrete;
   label Rate = "Rate";
   title 'hi';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Feb 2018 02:12:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438849#M15135</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-02-21T02:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot / custom scale for xaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438850#M15136</link>
      <description>&lt;P&gt;The CI bar widths are scaled to the x-axis based on the values you provide in the&amp;nbsp;&lt;SPAN&gt;LowerCL and UpperCL variables in the data set.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;It is the same in both the graphs.&amp;nbsp; Plot 1 has bigger range on the x-axis, so the same bar widths look smaller.&amp;nbsp; The only way to change them is if you&amp;nbsp;change the values in the LowerCL and UpperCL variables in the data set.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 02:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438850#M15136</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-02-21T02:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot / custom scale for xaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438852#M15137</link>
      <description>Sanjay, I'm using noautolegend, do you know how to label for each type=discrete in legend on the side of the plot? any reference document for the similar plot?</description>
      <pubDate>Wed, 21 Feb 2018 02:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438852#M15137</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-02-21T02:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc sgplot / custom scale for xaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438865#M15139</link>
      <description>&lt;P&gt;If you leave out the NOAUTOLEGEND you will get the default legend at the bottom.&amp;nbsp; You can customize its position by using a KEYLEGEND / position=right across=1;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 05:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-sgplot-custom-scale-for-xaxis/m-p/438865#M15139</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2018-02-21T05:00:58Z</dc:date>
    </item>
  </channel>
</rss>

