<?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 PROC SHEWHART graphing bug for R-chart with subgroup size=1 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797636#M313593</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting an invalid control chart where the color band for an R-chart sometimes extends outside of the limits.&amp;nbsp; It looks like it's a graphing bug.&amp;nbsp; Seems to happen when there are&amp;nbsp; varying subgroup sizes, and one of the groups has a size of one.&amp;nbsp; I think it's trying to put a break in the band (because the control limits are undefined for an R chart with subgroup size=1), and something is going wrong in the graphing code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When it happens, I get a chart where the band blot has crazy shapes, like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shewhartbug.png" style="width: 943px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68724i5D81C11F1EEBDA8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="shewhartbug.png" alt="shewhartbug.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I replicated on 9.4M4 windows and 9.4M6 linux, with below code taken from Shewhart docs (I replaced some of the values with missings).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Disks;
  input Lot @;
  do i=1 to 6;
    input Time @;
    output;
  end;
  drop i;
  datalines;
1 8.05 7.90 .    .    .    .
2 8.03 .    .    .    .    .
3 8.00 7.94 7.97 7.95 8.00 8.01
4 8.00 8.06 8.06 7.99 7.97 7.96
5 7.93 8.01 8.00 8.09 8.06 8.02
6 7.98 7.99 8.01 8.09 8.00 7.97
7 8.00 7.94 7.93 8.03 7.93 8.08
8 8.01 7.98 7.98 8.07 8.05 8.09
9 7.97 7.96 8.01 8.11 8.06 8.07
10 7.93 8.03 8.03 8.00 7.93 8.03
11 8.00 .    .    .    .    .
12 7.98 7.93 8.01 7.97 8.02 8.00
13 8.06 7.93 7.98 7.98 8.02 7.96
14 8.05 7.98 8.05 7.99 7.95 7.99
15 7.94 8.01 7.97 8.04 7.91 8.03
16 8.03 8.03 8.02 8.06 8.00 7.97
17 8.03 7.94 8.05 8.05 8.04 7.94
18 7.99 7.99 7.86 7.99 8.06 8.03
19 7.95 7.96 7.99 7.96 7.94 8.12
20 8.03 8.07 7.98 7.97 8.00 8.04
21 8.04 7.90 8.03 8.02 7.98 7.97
22 7.95 8.05 7.98 8.01 7.97 8.15
23 8.06 8.00 8.03 8.02 7.99 7.95
24 7.97 8.02 8.00 7.96 7.96 8.00
25 8.12 7.97 7.99 8.09 8.05 8.00
;

ods graphics on ;
proc shewhart data=Disks;
rchart Time*Lot/markers;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Wondering if anyone has seen this before, could replicate running above code, and agree it's a bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for thoughts,&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 18:45:25 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2022-02-21T18:45:25Z</dc:date>
    <item>
      <title>PROC SHEWHART graphing bug for R-chart with subgroup size=1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797636#M313593</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting an invalid control chart where the color band for an R-chart sometimes extends outside of the limits.&amp;nbsp; It looks like it's a graphing bug.&amp;nbsp; Seems to happen when there are&amp;nbsp; varying subgroup sizes, and one of the groups has a size of one.&amp;nbsp; I think it's trying to put a break in the band (because the control limits are undefined for an R chart with subgroup size=1), and something is going wrong in the graphing code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When it happens, I get a chart where the band blot has crazy shapes, like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shewhartbug.png" style="width: 943px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68724i5D81C11F1EEBDA8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="shewhartbug.png" alt="shewhartbug.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I replicated on 9.4M4 windows and 9.4M6 linux, with below code taken from Shewhart docs (I replaced some of the values with missings).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Disks;
  input Lot @;
  do i=1 to 6;
    input Time @;
    output;
  end;
  drop i;
  datalines;
1 8.05 7.90 .    .    .    .
2 8.03 .    .    .    .    .
3 8.00 7.94 7.97 7.95 8.00 8.01
4 8.00 8.06 8.06 7.99 7.97 7.96
5 7.93 8.01 8.00 8.09 8.06 8.02
6 7.98 7.99 8.01 8.09 8.00 7.97
7 8.00 7.94 7.93 8.03 7.93 8.08
8 8.01 7.98 7.98 8.07 8.05 8.09
9 7.97 7.96 8.01 8.11 8.06 8.07
10 7.93 8.03 8.03 8.00 7.93 8.03
11 8.00 .    .    .    .    .
12 7.98 7.93 8.01 7.97 8.02 8.00
13 8.06 7.93 7.98 7.98 8.02 7.96
14 8.05 7.98 8.05 7.99 7.95 7.99
15 7.94 8.01 7.97 8.04 7.91 8.03
16 8.03 8.03 8.02 8.06 8.00 7.97
17 8.03 7.94 8.05 8.05 8.04 7.94
18 7.99 7.99 7.86 7.99 8.06 8.03
19 7.95 7.96 7.99 7.96 7.94 8.12
20 8.03 8.07 7.98 7.97 8.00 8.04
21 8.04 7.90 8.03 8.02 7.98 7.97
22 7.95 8.05 7.98 8.01 7.97 8.15
23 8.06 8.00 8.03 8.02 7.99 7.95
24 7.97 8.02 8.00 7.96 7.96 8.00
25 8.12 7.97 7.99 8.09 8.05 8.00
;

ods graphics on ;
proc shewhart data=Disks;
rchart Time*Lot/markers;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Wondering if anyone has seen this before, could replicate running above code, and agree it's a bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for thoughts,&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 18:45:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797636#M313593</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-02-21T18:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SHEWHART graphing bug for R-chart with subgroup size=1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797639#M313595</link>
      <description>&lt;P&gt;Quentin, you should definitely report this to SAS Technical Support. I cannot weigh in as to whether it's a bug. Others here might be able to, but regardless: reporting toward a possible fix or workaround is best tracked with Tech Support.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 18:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797639#M313595</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-02-21T18:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SHEWHART graphing bug for R-chart with subgroup size=1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797641#M313597</link>
      <description>&lt;P&gt;If I specify&amp;nbsp;cinfill=none to suppress the coloring of the area within the control limits, the plot looks fine.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 19:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797641#M313597</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-02-21T19:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SHEWHART graphing bug for R-chart with subgroup size=1</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797834#M313691</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tech support confirmed this is a bug [track&amp;nbsp;&lt;SPAN&gt;SAS 7613523932]&lt;/SPAN&gt;, and said they would refer it to the developer. They also pointed out that the graph issue is specific to the graph being produced with ODS graphics.&amp;nbsp; If you turn off ODS graphics, SHEWHART will use traditional SAS graphics, and does not have the problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics off;
symbol v=dot;
proc shewhart data=Disks;
  rchart Time*Lot/markers;
run;
ods graphics on;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-graphing-bug-for-R-chart-with-subgroup-size-1/m-p/797834#M313691</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-02-22T15:30:49Z</dc:date>
    </item>
  </channel>
</rss>

