BookmarkSubscribeRSS Feed
Bullfrog
Calcite | Level 5

Hello:

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?

2 REPLIES 2
SteveDenham
Jade | Level 19

Try using a format, such that each batch has a formatted date associated.

Steve Denham

PaigeMiller
Diamond | Level 26

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)

--
Paige Miller

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
  • 2 replies
  • 1414 views
  • 3 likes
  • 3 in conversation