BookmarkSubscribeRSS Feed
saspert
Pyrite | Level 9

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.

1 REPLY 1
Rick_SAS
SAS Super FREQ

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.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1339 views
  • 0 likes
  • 2 in conversation