<?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 ~ Is there a way to override &amp;amp;amp; relabel X-Axis in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685613#M207957</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;How can I use one subgroup variable in PROC Shewhart but later display a different variable as the x-axis label?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SHEWHART data=my_data;
irchart measure*sample / href=sample_no;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then rewrite the x-axis to use the date instead of the sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;The x-axis are date formats and sometimes are repeats of one another.&lt;/P&gt;&lt;P&gt;Because of this, I get a lot of warning messages even though they are not the same, but simply occurred on the same date.&lt;/P&gt;&lt;P&gt;In addition, if I attempt to display href lines they repeat because potentially two data points have the same date value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a new variable that increments so there are no repeats, but then override the x-axis to display the original dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2020 08:10:18 GMT</pubDate>
    <dc:creator>narnia649</dc:creator>
    <dc:date>2020-09-22T08:10:18Z</dc:date>
    <item>
      <title>PROC SHEWHART ~ Is there a way to override &amp;amp; relabel X-Axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685613#M207957</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;How can I use one subgroup variable in PROC Shewhart but later display a different variable as the x-axis label?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SHEWHART data=my_data;
irchart measure*sample / href=sample_no;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then rewrite the x-axis to use the date instead of the sample.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;The x-axis are date formats and sometimes are repeats of one another.&lt;/P&gt;&lt;P&gt;Because of this, I get a lot of warning messages even though they are not the same, but simply occurred on the same date.&lt;/P&gt;&lt;P&gt;In addition, if I attempt to display href lines they repeat because potentially two data points have the same date value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a new variable that increments so there are no repeats, but then override the x-axis to display the original dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 08:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685613#M207957</guid>
      <dc:creator>narnia649</dc:creator>
      <dc:date>2020-09-22T08:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SHEWHART ~ Is there a way to override &amp;amp; relabel X-Axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685622#M207964</link>
      <description>&lt;P&gt;Why not make SAMPLE a datetime with unique values? And then format it as as a date when plotting using format dtdate,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 08:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685622#M207964</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-09-22T08:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SHEWHART ~ Is there a way to override &amp;amp; relabel X-Axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685643#M207978</link>
      <description>&lt;P&gt;I got the datetime to work, but couldn't format it without having issues with the interval &amp;amp; exceeding max panels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA my_process;
INPUT x1 $ x2 $ x3 $ x4 group time datetime13.;
FORMAT time datetime13.;
DATALINES;
a a a 1 1 01JAN60:04:53
a a a 2 1 01JAN60:05:53
a a a 1 1 04JAN60:04:53
a a a 3 1 05JAN60:05:53
;
RUN;


PROC SHEWHART DATA = my_process; BY x1 x2 x3;
	IRCHART x4*time / turnhlabels INTERVAL=DTDAY;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Unfortunately, it is doing what I didn't want to do with the scaling. Instead of showing a single space between dates it shows the true scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="narnia649_0-1600774231414.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49636i4C4C5ACB3A9BBD52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="narnia649_0-1600774231414.png" alt="narnia649_0-1600774231414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 11:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685643#M207978</guid>
      <dc:creator>narnia649</dc:creator>
      <dc:date>2020-09-22T11:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SHEWHART ~ Is there a way to override &amp;amp; relabel X-Axis</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685661#M207984</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/187270"&gt;@narnia649&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I got the datetime to work, but couldn't format it without having issues with the interval &amp;amp; exceeding max panels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA my_process;
INPUT x1 $ x2 $ x3 $ x4 group time datetime13.;
FORMAT time datetime13.;
DATALINES;
a a a 1 1 01JAN60:04:53
a a a 2 1 01JAN60:05:53
a a a 1 1 04JAN60:04:53
a a a 3 1 05JAN60:05:53
;
RUN;


PROC SHEWHART DATA = my_process; BY x1 x2 x3;
	IRCHART x4*time / turnhlabels INTERVAL=DTDAY;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Unfortunately, it is doing what I didn't want to do with the scaling. Instead of showing a single space between dates it shows the true scale.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="narnia649_0-1600774231414.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49636i4C4C5ACB3A9BBD52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="narnia649_0-1600774231414.png" alt="narnia649_0-1600774231414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your data is unequally spaced in time, you might want to instead just create a sequence number and plot the sequence number on the x-axis, this ought to eliminate the problems you mentioned. If you absolutely have to have some indication on month and day in the plot, then you can use the ability of PROC SHEWHART to add the day and month information elsewhere as a BLOCK variable, as shown in this example&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=qcug&amp;amp;docsetTarget=qcug_shewhart_sect473.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=qcug&amp;amp;docsetTarget=qcug_shewhart_sect473.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 12:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SHEWHART-Is-there-a-way-to-override-amp-amp-relabel-X-Axis/m-p/685661#M207984</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-09-22T12:25:11Z</dc:date>
    </item>
  </channel>
</rss>

