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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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