07-16-2013 01:51 PM
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?
07-17-2013 01:09 PM
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.