I ran an interactive Fit Y by X and then interactively changed the binning by using the Hand tool.
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