Thank you for replying Ian,
What I am attempting to accomplish:
I have been asked to create run charts for several variables on several instruments. These are intended to start two weeks prior to an identified or suspected process change. I do not see this as being a temporary request of me so I am hoping to make a field outside of JMP that the submitter can input their desired date. Then, poof, out pops a generated run chart with a reference line on the date that they have entered sparing me the tediousness of doing this at their beck and call.
My attempt at explaining what I am trying to do in JMP 12.2:
I grabbed the sample data for diameter for demonstration.
Control Chart(
Sample Label( :DAY ),
KSigma( 3 ),
Chart Col( :DIAMETER, Run Chart( Show Center Line( 0 ) ) ),
SendToReport(
Dispatch(
{"Run Chart of DIAMETER"},
"1",
ScaleBox,
{Add Ref Line( 4, "Solid", "Black", "", 1 )}
)
)
)
This works out great when I know what the "x-axis setting" value corresponds to the label. In the script above the 4 from "{Add Ref Line( 4, "Solid", "Black", "", 1 )}" is the date 05/04/1998. This is all good and well if my first value is always the same. However, I will only be dealing with a portion of the data table at a time. I would like to be able to call out the specific label, which happens to be a date, in the script instead of the value. This should allow me to automatically process a run chart for the four weeks prior to the date that is requested of me.
I am hoping that I am missing something obvious or perhaps there is a better way to deal with this problem than I am currently attempting.