Programming the statistical procedures from SAS

Proc Shewhart overlaying two charts with different ranges

Reply
Super Contributor
Posts: 275

Proc Shewhart overlaying two charts with different ranges

Hi,

My client wants to know if it is possible to overlay two or more charts in the same graph using PROC SHEWHART. Say I have 3 charts

1. Efficiency of manufacturing line 1

2. Efficiency of manufacturing line 2

3. Difference of efficiency of line 1 and efficiency of line 2

The Y axes for 1 and 2 are similar but for 3 is different. Is it possible to overlay the above 3 graphs using the same PROC?

Thanks,
Raj.

SAS Super FREQ
Posts: 3,555

Re: Proc Shewhart overlaying two charts with different ranges

One idea: Use ODS OUTPUT to create data sets from the PROC SHEWHART output as shown in this article: How to get data values out of ODS graphics - The DO Loop

You'll need to merge the data into "long forn": an ID variable that identifies the three groups, a T variable that contains the stacked times, and a Y variable that contains the stacked Y1, Y2, and Y1-Y2.   Then use PROC SGPANEL to plot the three graphs on a common XAXIS.

Ask a Question
Discussion stats
  • 1 reply
  • 203 views
  • 0 likes
  • 2 in conversation