cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
aallman
Level III

Heatmap Using Maximum instead of Mean

Hello

 

Is it possible to create a heatmap using the maximum value at each (x, y) rather than the average?

 

Thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Heatmap Using Maximum instead of Mean

You can do this, but you have to preprocess the statistics.  See the simple script below for an example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
dtmax = dt << Summary( Group( :sex, :age ), Max( :height ), Freq( "None" ), Weight( "None" ) );
New Window( "graphs",
	H List Box(
		dt << Graph Builder(
			Size( 570, 520 ),
			Variables( X( :SEX ), Y( :Age ), Color( :height ) ),
			Elements( Heatmap( X, Y, Legend( 4 ) ) )
		),
		dtmax << Graph Builder(
			Size( 570, 520 ),
			Variables( X( :SEX ), Y( :Age ), Color( :name( "max(height)" ) ) ),
			Elements( Heatmap( X, Y, Legend( 4 ) ) )
		)
	)
);

Heat Map.PNG

Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Heatmap Using Maximum instead of Mean

You can do this, but you have to preprocess the statistics.  See the simple script below for an example

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );
dtmax = dt << Summary( Group( :sex, :age ), Max( :height ), Freq( "None" ), Weight( "None" ) );
New Window( "graphs",
	H List Box(
		dt << Graph Builder(
			Size( 570, 520 ),
			Variables( X( :SEX ), Y( :Age ), Color( :height ) ),
			Elements( Heatmap( X, Y, Legend( 4 ) ) )
		),
		dtmax << Graph Builder(
			Size( 570, 520 ),
			Variables( X( :SEX ), Y( :Age ), Color( :name( "max(height)" ) ) ),
			Elements( Heatmap( X, Y, Legend( 4 ) ) )
		)
	)
);

Heat Map.PNG

Jim

Recommended Articles