cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-667617%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EUSL%20%E3%81%A8%20LSL%20%E3%82%92%E5%A4%89%E5%8B%95%E3%83%81%E3%83%A3%E3%83%BC%E3%83%88%E3%81%AB%E8%87%AA%E5%8B%95%E7%9A%84%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-667617%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E3%81%BF%E3%82%93%E3%81%AA%E3%80%81%3CBR%20%2F%3E%3CBR%20%2F%3E%20LSL%20%E3%81%A8%20USL%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E5%A4%89%E5%8B%95%E3%83%81%E3%83%A3%E3%83%BC%E3%83%88%E3%82%92%E8%87%AA%E5%8B%95%E7%9A%84%E3%81%AB%E7%94%9F%E6%88%90%E3%81%95%E3%81%9B%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%20%E3%81%93%E3%82%8C%E3%81%AF%E7%A7%81%E3%81%8C%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A7%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%81%93%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AF%E5%AE%9F%E8%A1%8C%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E3%83%81%E3%83%A3%E3%83%BC%E3%83%88%E3%81%AB%E5%88%B6%E9%99%90%E3%81%AF%E7%94%9F%E6%88%90%E3%81%95%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%20io%E3%81%8C%E4%BD%95%E3%82%92%E9%96%93%E9%81%95%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%8B%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EDeltaVar%3D%20New%20Window(%22GRR%20Delta%20Report%22%2C%0A%20%0A%20%20For(l%3D1%2C%20l%26lt%3B%3DNitems(ListDelta)%2Cl%2B%2B%2C%0A%20%20%20%0A%20%20%20tres%3DVariability%20Chart(%0A%20%20%20%20Y(ListDelta%5Bl%5D)%2C%0A%20%20%20%20X(%3AChan%2C%20%3ASN)%2C%0A%20%20%20%20Model%20(Crossed)%2C%0A%20%20%20%20Historical%20Sigma%20(0)%2C%0A%20%20%20%20Connect%20Cell%20Means%20(1)%2C%0A%20%20%20%20Show%20Group%20Means%20(1)%2C%0A%20%20%20%20Show%20Grand%20Mean%20(0)%2C%0A%20%20%20%20Show%20Grand%20Median%20(1)%2C%0A%20%20%20%20XBar%20Control%20Limits%20(1)%2C%0A%20%20%20%20S%20control%20Limits%20(1)%2C%0A%20%20%20%20Std%20Dev%20Chart%20(0)%2C%0A%20%20%20%20Mean%20Plots%20(0)%2C%0A%20%20%20%20Mean%20of%20Std%20Dev%20(1)%2C%0A%20%20%20%20Add%20Spec%20Limits(%7BLSL(-0.1)%2CUSL(0.1)%7D)%2C%0A%20%20%20%20Show%20Spec%20Limits(1)%2C%0A%0A%20%20%20)%3B%0A%20%20%20%0A%20%20)%3B%0A%0A%20%0A%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-667617%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8B%95%E5%8C%96%E3%81%A8%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E4%BD%9C%E6%88%90%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-667667%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20USL%20%E3%81%A8%20LSL%20%E3%82%92%E5%A4%89%E5%8B%95%E3%83%81%E3%83%A3%E3%83%BC%E3%83%88%E3%81%AB%E8%87%AA%E5%8B%95%E7%9A%84%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-667667%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%A4%89%E5%8B%95%E3%83%81%E3%83%A3%E3%83%BC%E3%83%88%E3%81%AF%E3%80%8C%E4%BB%95%E6%A7%98%E5%88%B6%E9%99%90%E3%81%AE%E8%BF%BD%E5%8A%A0%E3%80%8D%E3%82%92%E3%82%B5%E3%83%9D%E3%83%BC%E3%83%88%E3%81%97%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%20%E4%BB%95%E6%A7%98%E5%88%B6%E9%99%90%E3%82%92%E4%BB%95%E6%A7%98%E5%88%B6%E9%99%90%E5%88%97%E3%83%97%E3%83%AD%E3%83%91%E3%83%86%E3%82%A3%E3%81%A8%E3%81%97%E3%81%A6%E5%88%97%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0A%0AListDelta%20%3D%20%7B%22height%22%2C%20%22weight%22%7D%3B%0A%0AColumn(dt%2C%20%22height%22)%20%26lt%3B%26lt%3B%20Set%20Property(%22Spec%20Limits%22%2C%20%7BLSL(50)%2C%20USL(100)%2C%20Show%20Limits(1)%7D)%3B%0A%0ADeltaVar%20%3D%20New%20Window(%22GRR%20Delta%20Report%22%2C%20%20%0A%20For(l%20%3D%201%2C%20l%20%26lt%3B%3D%20N%20Items(ListDelta)%2C%20l%2B%2B%2C%20%0A%20%20tres%20%3D%20Variability%20Chart(%0A%20%20%20Y(Eval(ListDelta%5Bl%5D))%2C%0A%20%20%20X(%3Asex)%2C%0A%20%20%20Model(Crossed)%2C%0A%20%20%20Historical%20Sigma(0)%2C%0A%20%20%20Connect%20Cell%20Means(1)%2C%0A%20%20%20Show%20Group%20Means(1)%2C%0A%20%20%20Show%20Grand%20Mean(0)%2C%0A%20%20%20Show%20Grand%20Median(1)%2C%0A%20%20%20XBar%20Control%20Limits(1)%2C%0A%20%20%20S%20control%20Limits(1)%2C%0A%20%20%20Std%20Dev%20Chart(0)%2C%0A%20%20%20Mean%20Plots(0)%2C%0A%20%20%20Mean%20of%20Std%20Dev(1)%0A%20%20)%3B%20%20%0A%20)%3B%20%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-667708%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20USL%20%E3%81%A8%20LSL%20%E3%82%92%E5%A4%89%E5%8B%95%E3%83%81%E3%83%A3%E3%83%BC%E3%83%88%E3%81%AB%E8%87%AA%E5%8B%95%E7%9A%84%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-667708%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJarmo%20%E3%81%8C%E7%A4%BA%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%80%81%E5%88%97%E3%81%AE%E3%83%97%E3%83%AD%E3%83%91%E3%83%86%E3%82%A3%E3%81%AB%E4%BB%95%E6%A7%98%E5%88%B6%E9%99%90%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%A7%E3%81%8D%E3%82%8B%E4%BB%96%E3%81%AE%E6%96%B9%E6%B3%95%E3%81%8C%E3%81%82%E3%82%8B%E3%81%8B%E3%82%82%E3%81%97%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202023-08-13%20at%208.49.39%20AM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202023-08-13%20at%208.49.39%20AM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202023-08-13%20at%208.49.39%20AM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F55717iC8399CD52C2307A3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202023-08-13%20at%208.49.39%20AM.png%22%20alt%3D%22Screenshot%202023-08-13%20at%208.49.39%20AM.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E6%AC%A1%E3%81%AB%E3%80%81%E5%A4%89%E5%8B%95%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AB%E3%80%81%E4%B8%8B%E9%83%A8%E3%81%AB%E3%81%82%E3%82%8B%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E3%82%92%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202023-08-13%20at%208.49.58%20AM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202023-08-13%20at%208.49.58%20AM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202023-08-13%20at%208.49.58%20AM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F55718i243CB2F1401CF2F0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%202023-08-13%20at%208.49.58%20AM.png%22%20alt%3D%22Screenshot%202023-08-13%20at%208.49.58%20AM.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
CrownofTears
Level II

I cannot add USL and LSL to my variability chart automatically

Hi Guys,

I am trying to have my Variability charts generated automatically with LSL and USL. This is the code I am using.
This code runs but it does not generate the limits in the chart. Do you have any idea of what io am doing wrong?

DeltaVar= New Window("GRR Delta Report",
	
		For(l=1, l<=Nitems(ListDelta),l++,
			
			tres=Variability Chart(
				Y(ListDelta[l]),
				X(:Chan, :SN),
				Model (Crossed),
				Historical Sigma (0),
				Connect Cell Means (1),
				Show Group Means (1),
				Show Grand Mean (0),
				Show Grand Median (1),
				XBar Control Limits (1),
				S control Limits (1),
				Std Dev Chart (0),
				Mean Plots (0),
				Mean of Std Dev (1),
				Add Spec Limits({LSL(-0.1),USL(0.1)}),
				Show Spec Limits(1),

			);
			
		);

	
	);
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: I cannot add USL and LSL to my variability chart automatically

I don't think Variability Chart supports "Add Spec Limits". You could add the spec limits to your columns as Spec Limit column properties.

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

ListDelta = {"height", "weight"};

Column(dt, "height") << Set Property("Spec Limits", {LSL(50), USL(100), Show Limits(1)});

DeltaVar = New Window("GRR Delta Report", 	
	For(l = 1, l <= N Items(ListDelta), l++, 
		tres = Variability Chart(
			Y(Eval(ListDelta[l])),
			X(:sex),
			Model(Crossed),
			Historical Sigma(0),
			Connect Cell Means(1),
			Show Group Means(1),
			Show Grand Mean(0),
			Show Grand Median(1),
			XBar Control Limits(1),
			S control Limits(1),
			Std Dev Chart(0),
			Mean Plots(0),
			Mean of Std Dev(1)
		);		
	);	
);
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: I cannot add USL and LSL to my variability chart automatically

I don't think Variability Chart supports "Add Spec Limits". You could add the spec limits to your columns as Spec Limit column properties.

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

ListDelta = {"height", "weight"};

Column(dt, "height") << Set Property("Spec Limits", {LSL(50), USL(100), Show Limits(1)});

DeltaVar = New Window("GRR Delta Report", 	
	For(l = 1, l <= N Items(ListDelta), l++, 
		tres = Variability Chart(
			Y(Eval(ListDelta[l])),
			X(:sex),
			Model(Crossed),
			Historical Sigma(0),
			Connect Cell Means(1),
			Show Group Means(1),
			Show Grand Mean(0),
			Show Grand Median(1),
			XBar Control Limits(1),
			S control Limits(1),
			Std Dev Chart(0),
			Mean Plots(0),
			Mean of Std Dev(1)
		);		
	);	
);
-Jarmo
statman
Super User

Re: I cannot add USL and LSL to my variability chart automatically

There may be other ways, as Jarmo indicates you can add spec limits to the properties of the column

Screenshot 2023-08-13 at 8.49.39 AM.png

Then when you create the Variability plot, check the box at the bottom:

Screenshot 2023-08-13 at 8.49.58 AM.png

"All models are wrong, some are useful" G.E.P. Box