BookmarkSubscribe
Choose Language Hide Translation Bar
txnelson
Super User

Re: How to graph the last N values of a column?

Names DefaultToHere(1);

// Open a table and give it a table reference ('dt')
dt = Open("$SAMPLE_DATA/Big Class.jmp");

// Select the data you do not want, and exclude them
dt << select where( :sex == "F" );
dt << hide and exclude;

// Clear the selections
dt << clear select;

// Create the chart, only none excluded/hidden rows will be displayed
dt << Graph Builder(
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) )
);
Jim
0 Kudos
EMC2
Occasional Contributor

Re: How to graph the last N values of a column?

Thanks!
0 Kudos