<?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 Shewhart - How to set y-axis scale from 0 to 100 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572079#M18437</link>
    <description>&lt;P&gt;That should make you concerned. Please run the following code and provide the calculated minimum and maximum values of A.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=percentages min max;
    var a;
    format a;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Jul 2019 14:26:44 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-07-09T14:26:44Z</dc:date>
    <item>
      <title>Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/571902#M18431</link>
      <description>&lt;P&gt;I wanted to set the y-axis of a control chart to always run from 0 to 100%. However, Proc Shewhart seems to only allow the data range in y-axis. Is there anyway I can set the y-axis to always run from 0 to 100%?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are two options I tried:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics off; 
title 'ZZZ'; 
symbol v=dot color=darkblue h=1.75; 
proc shewhart data=percentages;
	xchart a*b/ interval = month climits=red nolimitlabel nolegend vformat = percent10. vaxis = (0 to 1 by 0.1);
	label a='XXX' b='YYY'; 
run; 

ods graphics off;
title 'ZZZ'; /*TITLE TO THE CHART*/
axis1 order = (0 to 1 by 0.1)
label=("XXX");
axis2 label = ("YYY"); 
symbol v=dot color=darkblue h=1.75; /*SYMBOL TYPE, COLOR AND DIAMETER*/
proc shewhart data=percentages;
	xchart a*b/ vaxis = axis1 haxis=axis2 interval = month climits=red nolimitlabel nolegend vformat=percent10.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2019 20:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/571902#M18431</guid>
      <dc:creator>guaguncher</dc:creator>
      <dc:date>2019-07-08T20:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/571910#M18432</link>
      <description>&lt;P&gt;What happened when you tried? Was there an error message or warning in the log? Was a plot actually produced?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What values does the variable A (on the y-axis) contain?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, my memory is that you can't have an axis whose range is smaller than the data (unless you CLIP the data), but you should be able to create an axis whose range is larger than the data.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 12:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/571910#M18432</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-09T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572056#M18433</link>
      <description>&lt;P&gt;This is what I get when I run the code. The range goes from what seems to be (negative) 10% to 50%, which is the range of the data, although there are no negative values in the data. Variable A (y axis) contains percentages/proportions, and variable B (x axis) contains months. I wanted the y axis to run from 0 to 100.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shewha89.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30855i983333255D37E625/image-size/large?v=v2&amp;amp;px=999" role="button" title="shewha89.png" alt="shewha89.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572056#M18433</guid>
      <dc:creator>guaguncher</dc:creator>
      <dc:date>2019-07-09T14:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572067#M18435</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Was there an error message or warning in the log?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572067#M18435</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-09T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572068#M18436</link>
      <description>&lt;P&gt;I received the following warning:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: For process variable a the VAXIS= values specified do not cover the data range.
WARNING: Default scaling is substituted&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572068#M18436</guid>
      <dc:creator>guaguncher</dc:creator>
      <dc:date>2019-07-09T14:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572079#M18437</link>
      <description>&lt;P&gt;That should make you concerned. Please run the following code and provide the calculated minimum and maximum values of A.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=percentages min max;
    var a;
    format a;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572079#M18437</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-09T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572084#M18439</link>
      <description>&lt;P&gt;This seems about right, the data ranges from 0 to 0.4.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 175px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30859iED8E968AD630537E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572084#M18439</guid>
      <dc:creator>guaguncher</dc:creator>
      <dc:date>2019-07-09T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572085#M18440</link>
      <description>&lt;P&gt;Very odd.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How large is this data set PERCENTAGES? If it is not too large, can you attach it here? (Don't bother if it is huge...)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572085#M18440</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-09T14:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572088#M18442</link>
      <description>&lt;P&gt;It is a small dataset, I have attached it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572088#M18442</guid>
      <dc:creator>guaguncher</dc:creator>
      <dc:date>2019-07-09T14:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572104#M18445</link>
      <description>&lt;P&gt;Ok, I think I have discovered the problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The lower control limit is negative, so the axis has to have a negative lower limit. However, if your code has&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;vaxis=(-0.1 to 1 by 0.1)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it will work, even if that's not really what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may be possible to use PCHART which can't have lower limits below 0%, but your data is not set up to allow PCHART to work, you'd probably have to go back to the original data (not the summarized data) to make PCHART work.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572104#M18445</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-09T15:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572108#M18446</link>
      <description>&lt;P&gt;Thank you! This does help a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:10:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572108#M18446</guid>
      <dc:creator>guaguncher</dc:creator>
      <dc:date>2019-07-09T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Shewhart - How to set y-axis scale from 0 to 100</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572238#M18459</link>
      <description>&lt;P&gt;Just as an update tick marks and percentages below 0 on the y-axis can&amp;nbsp; be suppressed by specifying&amp;nbsp; values for axis and hiding the tick marks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics off;
title 'ZZZ';
axis1 order = (-.1 to 1 by 0.1) value=(' ' '0%' '10%' '20%' '30%' '40%' '50%' '60%' '70%' '80%' '90%' '100%') 
      label=("XXX") major=none;
axis2 label = ("YYY"); 
symbol v=dot color=darkblue h=1.75;
proc shewhart data=percentages2;
  xchart a*b/ vaxis = axis1 haxis=axis2 interval = month climits=red nolimitlabel nolegend vformat=percent10.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 20:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Shewhart-How-to-set-y-axis-scale-from-0-to-100/m-p/572238#M18459</guid>
      <dc:creator>guaguncher</dc:creator>
      <dc:date>2019-07-09T20:44:34Z</dc:date>
    </item>
  </channel>
</rss>

