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
Choose Language Hide Translation Bar
alexpoles
Level I

Any way to change bin size in Oneway Anova?

Hi all. 


I'm a little new to JMP but I'm starting to get fairly comfortable. 
I have a solid dataset, but I am trying to see if there is a way to change my bin size on my histogram in my oneway Anova. The histogram is under the display options, so I'm not sure if JMP gives me a lot of control over it. I've tried changing my "increment" in the axis options and re-display the histogram but no success. 

 

alexpoles_0-1610991429199.png

 

 

Thanks in advance!
Alex 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Any way to change bin size in Oneway Anova?

I ran an interactive Fit Y by X and then interactively changed the binning by using the Hand tool.

hist.PNG

The JSL to generate this graph shows that you can do the binning you want, but you will have to get into the Segments for the graphs.  Take a look in the Scripting Index for the messages available for Segment manipulation


Oneway(
	Y( :weight ),
	X( :age ),
	Means( 1 ),
	Mean Diamonds( 1 ),
	Histograms( 1 ),
	SendToReport(
		Dispatch(
			{},
			"Oneway Report",
			FrameBox,
			{DispatchSeg( Hist Seg( 1 ), Bin Span( 4, 0 ) )}
		),
		Dispatch(
			{},
			"Oneway Report",
			FrameBox( 2 ),
			{DispatchSeg( Hist Seg( 1 ), Bin Span( 2, 0 ) )}
		),
		Dispatch(
			{},
			"Oneway Report",
			FrameBox( 4 ),
			{DispatchSeg( Hist Seg( 1 ), Bin Span( 3, 0 ) )}
		),
		Dispatch(
			{},
			"Oneway Report",
			FrameBox( 5 ),
			{DispatchSeg( Hist Seg( 1 ), Bin Span( 4, 0 ) )}
		)
	)
);

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Any way to change bin size in Oneway Anova?

I ran an interactive Fit Y by X and then interactively changed the binning by using the Hand tool.

hist.PNG

The JSL to generate this graph shows that you can do the binning you want, but you will have to get into the Segments for the graphs.  Take a look in the Scripting Index for the messages available for Segment manipulation


Oneway(
	Y( :weight ),
	X( :age ),
	Means( 1 ),
	Mean Diamonds( 1 ),
	Histograms( 1 ),
	SendToReport(
		Dispatch(
			{},
			"Oneway Report",
			FrameBox,
			{DispatchSeg( Hist Seg( 1 ), Bin Span( 4, 0 ) )}
		),
		Dispatch(
			{},
			"Oneway Report",
			FrameBox( 2 ),
			{DispatchSeg( Hist Seg( 1 ), Bin Span( 2, 0 ) )}
		),
		Dispatch(
			{},
			"Oneway Report",
			FrameBox( 4 ),
			{DispatchSeg( Hist Seg( 1 ), Bin Span( 3, 0 ) )}
		),
		Dispatch(
			{},
			"Oneway Report",
			FrameBox( 5 ),
			{DispatchSeg( Hist Seg( 1 ), Bin Span( 4, 0 ) )}
		)
	)
);

 

Jim
Jeff_Perkinson
Community Manager Community Manager

Re: Any way to change bin size in Oneway Anova?

Further to @txnelson's correct answer. The Hand/Grabber Tool can be used to modify the histograms.

 

AdjustHistograms.gif

 

-Jeff