Through a bit of trial and error, I've come to the conclusion that Bin Span (x, y) works out to:
x = the size of each bin; same function as using the hand tool and dragging horizontally
y = the offset of each bin; same function as using the hand tool and dragging vertically
(This holds true for the ANOVA platform--I didn't check with other histograms)
The code below demonstrates this with the Big Class sample file.
Names Default To Here (1);
dt = open ("$SAMPLE_DATA/big class.jmp");
//a bin for each data point
Oneway(
Y( :weight ),
X( :age ),
Histograms( 1 ),
SendToReport(
Dispatch(
{},
"Oneway Report",
FrameBox,
{DispatchSeg( Hist Seg( 1 ), Bin Span( 1, 0 ) )}
)
)
);
//huge bin
Oneway(
Y( :weight ),
X( :age ),
Histograms( 1 ),
SendToReport(
Dispatch(
{},
"Oneway Report",
FrameBox,
{DispatchSeg( Hist Seg( 1 ), Bin Span( 100, 0 ) )}
)
)
);
//medium bins with some offset
Oneway(
Y( :weight ),
X( :age ),
Histograms( 1 ),
SendToReport(
Dispatch(
{},
"Oneway Report",
FrameBox,
{DispatchSeg( Hist Seg( 1 ), Bin Span( 10, 50 ) )}
)
)
);