cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-800949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%9B%B4%E6%94%B9%E5%A4%9A%E5%8F%98%E5%BC%82%E5%9B%BE%E7%9A%84%E6%A0%87%E8%AE%B0%E5%A4%A7%E5%B0%8F%E5%92%8C%E6%A1%86%E6%9E%B6%E5%A4%A7%E5%B0%8F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%A4%A7%E5%AE%B6%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%98%AF%E5%90%A6%E6%9C%89%E4%B8%80%E7%A7%8D%E7%AE%80%E5%8D%95%E7%9A%84%E6%96%B9%E6%B3%95%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E2%80%9Csendtoreport%E2%80%9D%E5%92%8C%E2%80%9Cdispatch%E2%80%9D%E5%87%BD%E6%95%B0%E6%9D%A5%E6%9B%B4%E6%94%B9%EF%BC%9Aheight%20%E5%92%8C%EF%BC%9Aweight%20%E5%8F%98%E5%8C%96%E5%9B%BE%E8%A1%A8%E7%9A%84%E6%A1%86%E6%9E%B6%E5%A4%A7%E5%B0%8F%E5%92%8C%E6%A0%87%E8%AE%B0%E5%A4%A7%E5%B0%8F%EF%BC%9F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E4%B8%8B%E9%9D%A2%E6%98%AF%E4%BD%BF%E7%94%A8%20Big%20Class.jmp%20%E7%9A%84%E7%A4%BA%E4%BE%8B%E3%80%82%E6%88%91%E6%89%BE%E4%B8%8D%E5%88%B0%E4%B8%80%E7%A7%8D%E6%96%B9%E6%B3%95%E6%9D%A5%E6%9B%B4%E6%94%B9%E6%A0%87%E8%AE%B0%E5%A4%A7%E5%B0%8F%E5%92%8C%E6%A1%86%E6%9E%B6%E5%A4%A7%E5%B0%8F%E4%BB%A5%E5%9C%A8%E4%B8%A4%E4%B8%AA%E5%8F%98%E5%BC%82%E6%80%A7%E5%9B%BE%E8%A1%A8%E4%B8%AD%E5%B7%A5%E4%BD%9C%E3%80%82%E4%B8%8D%E7%A1%AE%E5%AE%9A%E6%98%AF%E5%90%A6%E6%9C%89%E4%B8%80%E7%A7%8D%E7%AE%80%E5%8D%95%E7%9A%84%E6%96%B9%E6%B3%95%EF%BC%8C%E8%80%8C%E4%B8%8D%E5%BF%85%E4%BD%BF%E7%94%A8%20for%20%E5%BE%AA%E7%8E%AF%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%8C%3C%2FP%3E%3CP%3E%E9%9B%B7%E5%85%8B%E6%96%AF%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EOpen(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0AVariability%20Chart(%0A%09%09Y(%20%3AHeight%20%2C%3AWeight)%2C%0A%09%09X(%3Asex)%2C%0A%09%09Analysis%20Type(%20%22Choose%20best%20analysis%20(EMS%20REML%20Bayesian)%22%20)%2C%0A%09%09Std%20Dev%20Chart(%200%20)%2C%0A%09%09Points%20Jittered(%201%20)%2C%0A%09%09Show%20Box%20Plots(%200%20)%2C%0A%09%09Show%20range%20bars(0)%2C%0A%09%09Connect%20cell%20means(0)%2C%0A%09%09Show%20cell%20means(0)%2C%0A%09%09SendToReport(%0A%09%09%09%09Dispatch(%0A%09%09%09%09%09%7B%7D%2C%0A%09%09%09%09%09%22variability%20chart%22%2C%0A%09%09%09%09%09FrameBox%2C%0A%09%09%09%09%09%7BFrame%20Size(%20800%2C%20240%20)%2C%20Marker%20Size(%202%20)%7D%0A%09%09%09%09)%0A%09%09)%0A%09)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-800949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8A%A8%E5%8C%96%E5%92%8C%E8%84%9A%E6%9C%AC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E5%9F%BA%E7%A1%80%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90%E4%B8%8E%E5%BB%BA%E6%A8%A1%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E6%95%B0%E6%8D%AE%E6%8E%A2%E7%B4%A2%E4%B8%8E%E5%8F%AF%E8%A7%86%E5%8C%96%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%A7%86%E7%AA%97%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800982%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%9B%B4%E6%94%B9%E5%A4%9A%E9%87%8D%E5%8F%98%E5%BC%82%E5%9B%BE%E7%9A%84%E6%A0%87%E8%AE%B0%E5%A4%A7%E5%B0%8F%E5%92%8C%E6%A1%86%E6%9E%B6%E5%A4%A7%E5%B0%8F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800982%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%20XPath%20%E8%8E%B7%E5%8F%96%E5%AF%B9%E6%A1%86%E6%9E%B6%E6%A1%86%E7%9A%84%E5%BC%95%E7%94%A8%E5%88%97%E8%A1%A8%EF%BC%8C%E7%84%B6%E5%90%8E%E5%90%91%E8%AF%A5%E5%88%97%E8%A1%A8%E5%8F%91%E9%80%81%E6%B6%88%E6%81%AF%3C%2FP%3E%0A%3CP%3E%20%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%0Avar%20%3D%20dt%20%26lt%3B%26lt%3B%20Variability%20Chart(%0A%09Y(%3AHeight%2C%20%3AWeight)%2C%0A%09X(%3Asex)%2C%0A%09Analysis%20Type(%22Choose%20best%20analysis%20(EMS%20REML%20Bayesian)%22)%2C%0A%09Std%20Dev%20Chart(0)%2C%0A%09Points%20Jittered(1)%2C%0A%09Show%20Box%20Plots(0)%2C%0A%09Show%20range%20bars(0)%2C%0A%09Connect%20cell%20means(0)%2C%0A%09Show%20cell%20means(0)%0A)%3B%0A%0Afbs%20%3D%20Report(var)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FFrameBox%5B%40helpKey%20%3D%20'Variability%20Chart'%5D%22)%3B%0A%0Afbs%5B1%3A%3AN%20Items(fbs)%3A%3A2%5D%20%26lt%3B%26lt%3B%20Frame%20Size(300%2C%20300)%20%26lt%3B%26lt%3B%20Marker%20Size(10)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E6%88%91%E4%BD%BF%E7%94%A8%201%2C3%20%E7%B4%A2%E5%BC%95%EF%BC%881%3A%3AN%20Items(fbs)%3A%3A2%EF%BC%89%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%A0%87%E5%87%86%E5%B7%AE%E5%9B%BE%E8%A1%A8%E5%9C%A8%E6%8A%A5%E5%91%8A%E4%B8%AD%EF%BC%8C%E5%AE%83%E4%BB%AC%E5%8F%AA%E6%98%AF%E8%A2%AB%E9%9A%90%E8%97%8F%E4%BA%86%EF%BC%88%E5%9C%A8%E8%BF%99%E7%A7%8D%E6%83%85%E5%86%B5%E4%B8%8B%E6%98%AF%202%20%E5%92%8C%204%20%E4%B8%AA%E7%B4%A2%E5%BC%95%EF%BC%89%EF%BC%8C%E4%BD%86%E5%BE%88%E5%8F%AF%E8%83%BD%E6%9B%B4%E6%96%B0%E8%BF%99%E4%BA%9B%E5%A4%A7%E5%B0%8F%E4%B9%9F%E6%98%AF%E5%8F%AF%E4%BB%A5%E7%9A%84%E3%80%82%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801202%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%9B%B4%E6%94%B9%E5%A4%9A%E5%8F%98%E5%BC%82%E5%9B%BE%E7%9A%84%E6%A0%87%E8%AE%B0%E5%A4%A7%E5%B0%8F%E5%92%8C%E6%A1%86%E6%9E%B6%E5%A4%A7%E5%B0%8F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801202%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E-%E8%B4%BE%E8%8E%AB%EF%BC%8C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E6%88%91%E5%9C%A8%E8%BF%99%E4%B8%AA%E7%A4%BA%E4%BE%8B%E8%84%9A%E6%9C%AC%E4%B8%AD%E9%81%87%E5%88%B0%E7%9A%84%E5%8F%A6%E4%B8%80%E4%B8%AA%E9%97%AE%E9%A2%98%E6%98%AF%E2%80%9C%E6%98%BE%E7%A4%BA%E7%AE%B1%E7%BA%BF%E5%9B%BE%EF%BC%880%EF%BC%89%E2%80%9D%E4%B8%8D%E4%BC%9A%E5%85%B3%E9%97%AD%E7%AE%B1%E7%BA%BF%E5%9B%BE%E3%80%82%E6%82%A8%E8%83%BD%E5%90%A6%E5%BB%BA%E8%AE%AE%E5%A6%82%E4%BD%95%E5%85%B3%E9%97%AD%E6%AD%A4%E7%A4%BA%E4%BE%8B%E4%B8%AD%E7%9A%84%E7%AE%B1%E7%BA%BF%E5%9B%BE%EF%BC%9F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%8C%3C%2FP%3E%3CP%3E%E9%9B%B7%E5%85%8B%E6%96%AF%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801204%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%9B%B4%E6%94%B9%E5%A4%9A%E9%87%8D%E5%8F%98%E5%BC%82%E5%9B%BE%E7%9A%84%E6%A0%87%E8%AE%B0%E5%A4%A7%E5%B0%8F%E5%92%8C%E6%A1%86%E6%9E%B6%E5%A4%A7%E5%B0%8F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801204%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%9C%A8%E6%88%91%E7%9A%84%E7%A4%BA%E4%BE%8B%E4%B8%AD%EF%BC%8C%E5%AE%83%E4%BB%AC%E8%A2%AB%E7%A6%81%E7%94%A8%E3%80%82%E5%A6%82%E6%9E%9C%E8%BF%99%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8%EF%BC%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%B0%86%E6%B6%88%E6%81%AF%E5%88%86%E5%88%AB%E5%8F%91%E9%80%81%E5%88%B0%E6%AF%8F%E4%B8%AA%E8%BD%AE%E5%BB%93%E5%8F%98%E5%BC%82%E6%80%A7%E5%88%86%E6%9E%90%EF%BC%88%E6%88%96%E5%B9%B3%E5%8F%B0%EF%BC%89%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%0Avar%20%3D%20dt%20%26lt%3B%26lt%3B%20Variability%20Chart(%0A%09Y(%3AHeight%2C%20%3AWeight)%2C%0A%09X(%3Asex)%2C%0A%09Analysis%20Type(%22Choose%20best%20analysis%20(EMS%20REML%20Bayesian)%22)%2C%0A%09Std%20Dev%20Chart(0)%2C%0A%09Points%20Jittered(1)%2C%0A%09Show%20Box%20Plots(0)%2C%0A%09Show%20range%20bars(0)%2C%0A%09Connect%20cell%20means(0)%2C%0A%09Show%20cell%20means(0)%0A)%3B%0A%0Afbs%20%3D%20Report(var)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FFrameBox%5B%40helpKey%20%3D%20'Variability%20Chart'%5D%22)%3B%0A%0Afbs%5B1%3A%3AN%20Items(fbs)%3A%3A2%5D%20%26lt%3B%26lt%3B%20Frame%20Size(300%2C%20300)%20%26lt%3B%26lt%3B%20Marker%20Size(10)%3B%0A%0Aobs_varanalysis%20%3D%20Report(var)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FOutlineBox%5B%40helpKey%20%3D%20'Variability'%20and%20contains(text()%2C%20'Variability%20Gauge%20Analysis%20for')%5D%22)%3B%0A(obs_varanalysis%20%26lt%3B%26lt%3B%20Get%20Scriptable%20Object)%20%26lt%3B%26lt%3B%20show%20box%20plots(1)%3B%20%2F%2F%20change%20to%200%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E8%84%9A%E6%9C%AC%E7%B4%A2%E5%BC%95%E4%B9%9F%E6%9C%89%E7%A4%BA%E4%BE%8B%EF%BC%8C%E4%BD%86%E8%BF%99%E5%8F%AF%E8%83%BD%E9%9C%80%E8%A6%81%E5%BE%AA%E7%8E%AF%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1726984153170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1726984153170.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68515iF014B55A83874EA5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1726984153170.png%22%20alt%3D%22jthi_0-1726984153170.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E6%88%96%E8%80%85%E5%A6%82%E6%9E%9C%E4%BD%A0%E6%9C%89%20JMP18%20%26lt%3B%26lt%3B%20%E5%B9%BF%E6%92%AD%E5%BA%94%E8%AF%A5%E5%8F%AF%E4%BB%A5%E5%B7%A5%E4%BD%9C%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%0Avar%20%3D%20dt%20%26lt%3B%26lt%3B%20Variability%20Chart(%0A%09Y(%3AHeight%2C%20%3AWeight)%2C%0A%09X(%3Asex)%2C%0A%09Analysis%20Type(%22Choose%20best%20analysis%20(EMS%20REML%20Bayesian)%22)%2C%0A%09Std%20Dev%20Chart(0)%2C%0A%09Points%20Jittered(1)%2C%0A%09Show%20Box%20Plots(0)%2C%0A%09Show%20range%20bars(0)%2C%0A%09Connect%20cell%20means(0)%2C%0A%09Show%20cell%20means(0)%0A)%3B%0A%0Afbs%20%3D%20Report(var)%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FFrameBox%5B%40helpKey%20%3D%20'Variability%20Chart'%5D%22)%3B%0Afbs%5B1%3A%3AN%20Items(fbs)%3A%3A2%5D%20%26lt%3B%26lt%3B%20Frame%20Size(300%2C%20300)%20%26lt%3B%26lt%3B%20Marker%20Size(10)%3B%0A%0Avar%20%26lt%3B%26lt%3B%20(Variability%20Analysis%5B1%5D%20%26lt%3B%26lt%3B%20Broadcast(Show%20Box%20Plots(1)))%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

Change marker size and frame size of multiple variability plot

Hi All, 

 

Is there an easy way to use the "sendtoreport" and "dispatch" functions to change the frame size and marker size of the :height and :weight  variability charts?

 

Below is an example using Big Class.jmp. I couldn't find a way to change the marker size and frame size to work in both variability charts. Not sure if there's an easy way without having to use the for loop. 

 

Thanks, 

rex

 

Open( "$SAMPLE_DATA/Big Class.jmp" );
Variability Chart(
		Y( :Height ,:Weight),
		X(:sex),
		Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
		Std Dev Chart( 0 ),
		Points Jittered( 1 ),
		Show Box Plots( 0 ),
		Show range bars(0),
		Connect cell means(0),
		Show cell means(0),
		SendToReport(
				Dispatch(
					{},
					"variability chart",
					FrameBox,
					{Frame Size( 800, 240 ), Marker Size( 2 )}
				)
		)
	);
3 REPLIES 3
jthi
Super User

Re: Change marker size and frame size of multiple variability plot

You can use XPath to get list of references to frameboxes and then send messages to that list

 

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
var = dt << Variability Chart(
	Y(:Height, :Weight),
	X(:sex),
	Analysis Type("Choose best analysis (EMS REML Bayesian)"),
	Std Dev Chart(0),
	Points Jittered(1),
	Show Box Plots(0),
	Show range bars(0),
	Connect cell means(0),
	Show cell means(0)
);

fbs = Report(var) << XPath("//FrameBox[@helpKey = 'Variability Chart']");

fbs[1::N Items(fbs)::2] << Frame Size(300, 300) << Marker Size(10);

I use 1,3 indexes (1::N Items(fbs)::2) because the stddev charts are in the report, they are just hidden (2 and 4 indices in this case) butt most likely it would be fine to update those sizes as well.

 

-Jarmo

Re: Change marker size and frame size of multiple variability plot

-Jarmo, 

 

Another problem I have in this example script is "Show Box Plots(0)" does not turn off the box plot. Can you please advise how to turn off the box plot in this example?

 

Thanks, 

rex

jthi
Super User

Re: Change marker size and frame size of multiple variability plot

For me they are disabled in my example. If that doesn't work you can send the message separately to each of the outline variability analyses (or the platform)

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
var = dt << Variability Chart(
	Y(:Height, :Weight),
	X(:sex),
	Analysis Type("Choose best analysis (EMS REML Bayesian)"),
	Std Dev Chart(0),
	Points Jittered(1),
	Show Box Plots(0),
	Show range bars(0),
	Connect cell means(0),
	Show cell means(0)
);

fbs = Report(var) << XPath("//FrameBox[@helpKey = 'Variability Chart']");

fbs[1::N Items(fbs)::2] << Frame Size(300, 300) << Marker Size(10);

obs_varanalysis = Report(var) << XPath("//OutlineBox[@helpKey = 'Variability' and contains(text(), 'Variability Gauge Analysis for')]");
(obs_varanalysis << Get Scriptable Object) << show box plots(1); // change to 0

Scripting index also has an example, but this might require looping

jthi_0-1726984153170.png

or if you have JMP18 << Broadcast should work

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
var = dt << Variability Chart(
	Y(:Height, :Weight),
	X(:sex),
	Analysis Type("Choose best analysis (EMS REML Bayesian)"),
	Std Dev Chart(0),
	Points Jittered(1),
	Show Box Plots(0),
	Show range bars(0),
	Connect cell means(0),
	Show cell means(0)
);

fbs = Report(var) << XPath("//FrameBox[@helpKey = 'Variability Chart']");
fbs[1::N Items(fbs)::2] << Frame Size(300, 300) << Marker Size(10);

var << (Variability Analysis[1] << Broadcast(Show Box Plots(1)));
-Jarmo