BookmarkSubscribe
Choose Language Hide Translation Bar
Thierry_S
Community Trekker

GraphBuilder Challenge: How to add labels to the right of an Heatmap

Hi JMP community,

 

I'm trying to push GraphBuilder to its limit by creating the following Heatmap plot from the attached file with additional labels (:CLASS) on the right of the main plot. I have tried to add the CLASS variable as a second Y Right Axis but it creates an independent scale that does not line up with the categories defined by the Left axis (:ASSOCIATION > :MODULE). Any trick to make this happen (the alternative is to add those labels by hand in a graphic program).

What I have so far                                                              What I'm looking for

HEAT MAP INCOMPLETE.pngHEAT MAP INCOMPLETE + MOCK.png

Thanks for your help.

TS

 

P.S.

Here is the script for the left graph (What I have so far)

Graph Builder(
	Size( 669, 634 ),
	Variables(
		X( :COMPARISON ),
		Y( :ASSOCIATION ),
		Y(
			:MODULE,
			Position( 1 ),
			Order By( :Cluster, Ascending, Order Statistic( "Mean" ) )
		),
		Color( :Data )
	),
	Elements( Heatmap( X, Y( 2 ), Y( 1 ), Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"COMPARISON",
			ScaleBox,
			{Add Ref Line( 1.5, "Solid", "Black", "", 3 )}
		),
		Dispatch(
			{},
			"ASSOCIATION",
			ScaleBox,
			{Label Row( 2, {Major Grid Line Color( 0 ), Show Major Grid( 1 )} )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				5,
				Properties(
					0,
					{gradient(
						{Color Theme( "Cool to Warm" ), Min Lightness( 0.1261 ),
						Scale Values( [-3 0 3] ), Width( 12 )}
					)},
					Item ID( "Data", 1 )
				)
			)}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Grid Line Order( 2 ), Reference Line Order( 3 )}
		)
	)
);
Thierry R. Sornasse
0 Kudos
1 REPLY 1
Craige_Hales
Staff (Retired)

Re: GraphBuilder Challenge: How to add labels to the right of an Heatmap

Maybe this (dropped class on the left-axis in one of the drop zones):

Capture.PNGAdd function labels on left side

 

Graph Builder(
	Size( 625, 586 ),
	Show Control Panel( 0 ),
	Show Legend( 0 ),
	Variables(
		X( :COMPARISON ),
		Y( :ASSOCIATION ),
		Y( :CLASS, Position( 1 ) ),
		Y(
			:MODULE,
			Position( 1 ),
			Order By( :Cluster, Ascending, Order Statistic( "Mean" ) )
		),
		Color( :Data )
	),
	Elements( Heatmap( X, Y( 3 ), Y( 1 ), Y( 2 ), Legend( 5 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"COMPARISON",
			ScaleBox,
			{Add Ref Line( 1.5, "Solid", "Black", "", 3 )}
		),
		Dispatch(
			{},
			"ASSOCIATION",
			ScaleBox,
			{Label Row( 2, {Major Grid Line Color( 0 ), Show Major Grid( 1 )} )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				5,
				Properties(
					0,
					{gradient(
						{Color Theme( "Cool to Warm" ), Min Lightness( 0.1261 ),
						Scale Values( [-3 0 3] ), Width( 12 )}
					)},
					Item ID( "Data", 1 )
				)
			)}
		),
		Dispatch(
			{},
			"Graph Builder",
			FrameBox,
			{Grid Line Order( 1 ), Reference Line Order( 3 )}
		)
	)
);
Craige
0 Kudos