11-05-2013 02:32 PM
I'm using a PROC SHEWHART (DATA = work.SPCTable ); IRCHART. I'm looking to plot our production batches on the X-axis with humidity on the Y-axis. I'd like to plot the humidity against batch, but under the chart I'd like to see the dates along the X-axis. I.e., plot against one parameter, but display another on the X-axis. Make sense?
11-06-2013 03:51 PM
You can't really plot two x-axis variables, but you can display the dates via the block variables that are in the IRCHART syntax.
For example, if year month and day are variables in your data set with obvious meaning, then this would give you a chart with effectively 2 different x-axes.
IRCHART HUMIDITY*BATCH(year month day);
I think for this to work properly, the data would have to be sorted by year month and day, and also by batch (which of course should have the same sort order as year month day)