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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 1273 views
  • 0 likes
  • 2 in conversation