Max
Max using Run Script
Summary: Compares distributions in a Weibull probability scale, sending report settings to dispatch 'Compare Distributions' with customized scale and tick values.
Code:
dt = Open("data_table.jmp");
obj = dt << Run Script( "Life Distribution" );
obj << SendToReport(
Dispatch( {"Compare Distributions"}, "2", ScaleBox,
{Scale( "Weibull Probability" ), Min( 1.00031094518727e-13 ), Max( 0.547566849390804 ), Inc( 0.1 ), Minor Ticks( 0 )}
)
);
Code Explanation:
- Open table.
- Run script "Life Distribution".
- Send report settings.
- Dispatch to "Compare Distributions".
- Set scale to "Weibull Probability".
- Define minimum scale value.
- Define maximum scale value.
- Set increment value.
- Disable minor ticks.
Max using Chart
Summary: Creates a range chart with multiple Y axes, connecting points for the third axis, and visualizing high, low, and close values over time.
Code:
Open("data_table.jmp");
obj = Chart( X( :YearWeek ), Y( Max( :High ), Min( :Low ), Mean( :Close ) ), Range Chart( 1 ), Y[3] << Connect Points( 1 ) );
Code Explanation:
- Open data table;
- Create chart object.
- Set X axis to YearWeek.
- Set Y axis to High, Low, Close.
- Add range chart.
- Connect points for third Y axis.
- Save chart object.