cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
r30363
Level II

how to make cumulative probability plots in JMP?

How can I make cumulative probability plot like the one below? Appreciate your help.

r30363_0-1658152068599.png

 

 

30 REPLIES 30
hogi
Level XII

Re: how to make cumulative probability plots in JMP?

The solution comes from @XanGregg - employing a hidden feature of "Line" graph:

Open( "$SAMPLE_DATA/Airline Delays.jmp" );
Graph Builder(
	Variables( X( :Arrival Delay ), Wrap( :Month ), Overlay( :Airline ) ),
	Elements( Line( X,  Summary Statistic( "Cumulative Percent" ) ) ));

 

hogi_0-1725393629467.png


and when you prefer points, it's almost that easy :

Open( "$SAMPLE_DATA/Airline Delays.jmp" );

new column ("one", formula(1)); // enabling the magic for points

Graph Builder(
	Variables( X( :Arrival Delay ), Y( :one_Nr ), Wrap( :Month ), Overlay( :Airline ) ),
	Elements( Points( X, Y, Legend( 3 ), Summary Statistic( "Cumulative Percent" ) ) )
);

hogi_1-1725393873248.png