<?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: Warning message for SGPLOT when a value is outside of axis range in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470459#M16223</link>
    <description>&lt;P&gt;Get rid of the AXIS statement.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 21:45:12 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2018-06-14T21:45:12Z</dc:date>
    <item>
      <title>Warning message for SGPLOT when a value is outside of axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470342#M16209</link>
      <description>&lt;P&gt;I was curious if anyone knew of a work around for SGPLOT to display when the axis isn't appropriate (i.e. there are values outside of the range specified for an axis). I know GPLOT will throw up a note in the log, which makes it easy to track down the issue, but for SGPLOT I haven't found anything similar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;do z=1 to 15;&lt;BR /&gt;y=z;&lt;BR /&gt;x=z;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sgplot data=test;&lt;BR /&gt;series x=x y=y;&lt;BR /&gt;yaxis min=3 max=8;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;axis2 order=(3 to 8 by 1);&lt;BR /&gt;proc gplot data=test;&lt;BR /&gt;plot x*y/vaxis=axis2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470342#M16209</guid>
      <dc:creator>nhankey</dc:creator>
      <dc:date>2018-06-14T14:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message for SGPLOT when a value is outside of axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470345#M16210</link>
      <description>&lt;P&gt;Sometimes I prefer taking the Min and Max values form the data, especially when the data keeps on changing and can never predict then min and max.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select min(y),max(y) INTO:Min,:max
from test;
quit;

proc sgplot data=test;
series x=x y=y;
yaxis min=&amp;amp;min max=&amp;amp;max;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470345#M16210</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-06-14T15:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message for SGPLOT when a value is outside of axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470352#M16212</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sometimes I prefer taking the Min and Max values form the data, especially when the data keeps on changing and can never predict then min and max.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select min(y),max(y) INTO:Min,:max
from test;
quit;

proc sgplot data=test;
series x=x y=y;
yaxis min=&amp;amp;min max=&amp;amp;max;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or if the values are decimals then Floor(min(y)), ceil(max(y))&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 15:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470352#M16212</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-14T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message for SGPLOT when a value is outside of axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470459#M16223</link>
      <description>&lt;P&gt;Get rid of the AXIS statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 21:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470459#M16223</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-06-14T21:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message for SGPLOT when a value is outside of axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470461#M16224</link>
      <description>&lt;P&gt;Min and MAX are doing exactly what they say they do.&amp;nbsp; Don't you want VALUES&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="xis-option"&gt;&lt;A href="http://127.0.0.1:52048/help/grstatproc.hlp/n0n6uml63c6h8dn16phbd1arm9g9.htm#p1ruaachjoi5xyn16kwprmyd7yhdb" target="_blank"&gt;MAX=&lt;SPAN class="xis-userSuppliedValue"&gt;numeric-value&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xis-shortDescription"&gt;specifies the maximum data value to include in the display (the value might be adjusted by the threshold calculation).&lt;/P&gt;
&lt;H5 class="xis-option"&gt;&lt;A href="http://127.0.0.1:52048/help/grstatproc.hlp/n0n6uml63c6h8dn16phbd1arm9g9.htm#p1px473mly8uusn1x8zda12yxb0jb" target="_blank"&gt;MIN=&lt;SPAN class="xis-userSuppliedValue"&gt;numeric-value&lt;/SPAN&gt;&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xis-shortDescription"&gt;specifies the minimum data value to include in the display (the value might be adjusted by the threshold calculation).&lt;/P&gt;
&lt;P class="xis-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 class="xis-option"&gt;&lt;A href="http://127.0.0.1:52048/help/grstatproc.hlp/n0n6uml63c6h8dn16phbd1arm9g9.htm#n09f4ln7jq8gkan1w2nhlkzjcrqzb" target="_blank"&gt;VALUES=(&lt;SPAN class="xis-userSuppliedValue"&gt;values-list&lt;/SPAN&gt; ) | (&lt;SPAN class="xis-userSuppliedValue"&gt;“string-list”&lt;/SPAN&gt; )&lt;/A&gt;&lt;/H5&gt;
&lt;P class="xis-shortDescription"&gt;specifies the values for the ticks on an axis.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 21:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470461#M16224</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-06-14T21:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message for SGPLOT when a value is outside of axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470591#M16225</link>
      <description>&lt;P&gt;And to add to data _null_'s point, you can use the VALUEHINT option to let the axis automatically extend to include data beyond the end of the VALUES bounds, but only the VALUE tick marks will be drawn.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/470591#M16225</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-15T13:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message for SGPLOT when a value is outside of axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/495702#M16935</link>
      <description>&lt;P&gt;I also miss the warning about data existing outside of the axis range.&amp;nbsp; Would be nice to have an option to turn on such warnings for SGPLOT.&amp;nbsp; As is, it feels too easy for me to design a nice plot, and then a month or two later some outliers appear and they are completely ignored by the plot.&amp;nbsp; If I intend to subset data I will use a WHERE option on the data, not an axis range.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VALUESHINT is nice for preventing the loss of display of surprise outliers.&amp;nbsp; But then you lose the ability of using the VALUES statement to force an axis to be longer than the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe want I want is some sort of global NOCLIP option which would ensure that data outside of axes are always displayed.&amp;nbsp; Basically I want to say "use this axis I've specified, but if there's any data outside of it extend the axis (and give me a note that the specified axis was not used)."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On a related note, I think I also want the ability to specify a FROM-TO-BY VALUES option that allows you to specify&amp;nbsp;only FROM, or only TO, only BY, or combinations, e.g. something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;values=(0 to max)
values=(0 to max by 5)
values=(min to max by 5)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Yes, I know there are plenty of macros out there that people use to generate beautiful axis ranges.&amp;nbsp; But I like when SAS does it for me. : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/495702#M16935</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-09-14T14:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Warning message for SGPLOT when a value is outside of axis range</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/495742#M16939</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, I know there are plenty of macros out there that people use to generate beautiful axis ranges.&amp;nbsp; But I like when SAS does it for me. : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When I want data driven control of axis generation I have used IML routine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;CALL GSCALE (scale, x, nincr &amp;lt;, nicenum&amp;gt; &amp;lt;, fixed-end&amp;gt; ); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What more do you need?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 15:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Warning-message-for-SGPLOT-when-a-value-is-outside-of-axis-range/m-p/495742#M16939</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-09-14T15:38:22Z</dc:date>
    </item>
  </channel>
</rss>

