cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-659599%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E3%83%92%E3%83%BC%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%20-%20%E8%89%B2%E3%81%AE%E6%B7%B7%E5%90%88%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-659599%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EBigClass%20%E3%81%A7%E3%81%AE%E3%82%A8%E3%82%A4%E3%83%AA%E3%82%A2%E3%83%B3%E3%81%AE%E6%A4%9C%E7%B4%A2%E3%81%A7%E3%80%81%E4%BB%8A%E6%97%A5%E3%81%AF%E3%82%A8%E3%82%A4%E3%83%AA%E3%82%A2%E3%83%B3%E3%82%92%E4%B8%80%E7%9B%AE%E3%81%A7%E7%A4%BA%E3%81%99%E3%83%92%E3%83%BC%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%20%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%82%92%E7%94%9F%E6%88%90%E3%81%97%E3%81%9F%E3%81%84%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%82%A2%E3%82%A4%E3%83%87%E3%82%A2%E3%81%AF%E3%80%81%E3%82%A8%E3%82%A4%E3%83%AA%E3%82%A2%E3%83%B3%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%84%E7%94%9F%E5%BE%92%E3%82%92%E7%B7%91%E8%89%B2%E3%81%AB%E3%80%81%E3%82%A8%E3%82%A4%E3%83%AA%E3%82%A2%E3%83%B3%E3%82%92%E8%B5%A4%E8%89%B2%E3%81%AB%E7%9D%80%E8%89%B2%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E5%90%8C%E3%81%98%E5%B9%B4%E9%BD%A2%E5%B1%A4%E3%81%AB%E3%82%A8%E3%82%A4%E3%83%AA%E3%82%A2%E3%83%B3%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%84%E4%BA%BA%E3%81%8C%E4%BD%95%E4%BA%BA%E3%82%82%E3%81%84%E3%82%8B%E3%81%A8%E3%80%81%E3%82%A8%E3%82%A4%E3%83%AA%E3%82%A2%E3%83%B3%E3%81%AE%E8%B5%A4%E3%81%8C%E3%81%BB%E3%82%93%E3%81%AE%E5%B0%91%E3%81%97%E3%81%A0%E3%81%91%E8%A6%8B%E3%81%88%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_3-1689680051325.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_3-1689680051325.png%22%20style%3D%22width%3A%20370px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_3-1689680051325.png%22%20style%3D%22width%3A%20370px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F54845i7299D74F0C0D3773%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_3-1689680051325.png%22%20alt%3D%22hogi_3-1689680051325.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%AC%A1%E3%81%AE%E3%82%A2%E3%82%A4%E3%83%87%E3%82%A2%3A%3CBR%20%2F%3E%E3%82%A8%E3%82%A4%E3%83%AA%E3%82%A2%E3%83%B3%E4%BB%A5%E5%A4%96%E3%81%AE%E9%80%8F%E6%98%8E%E6%80%A7%E3%82%92%E9%AB%98%E3%82%81%E3%81%A6%E3%80%81%E3%82%A8%E3%82%A4%E3%83%AA%E3%82%A2%E3%83%B3%E3%81%8C%E3%81%84%E3%82%8B%E5%B9%B4%E9%BD%A2%E5%B1%A4%E3%81%8C%E3%82%8F%E3%81%8B%E3%82%8A%E3%82%84%E3%81%99%E3%81%8F%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%97%E3%81%BE%E3%81%97%E3%82%87%E3%81%86%E3%80%82%3CBR%20%2F%3E%E7%A7%81%E3%81%AF%E3%81%9D%E3%81%AE%E3%82%88%E3%81%86%E3%81%AA%E3%82%BB%E3%83%AB%E3%81%8C%E8%B5%A4%E3%81%AB%E3%81%AA%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E6%9C%9F%E5%BE%85%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%20(%E5%A4%9A%E5%B0%91%E7%B7%91%E3%81%8C%E3%81%8B%E3%81%A3%E3%81%9F%E6%84%9F%E3%81%98)%20-%20%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E3%81%9D%E3%82%8C%E3%82%89%E3%81%AF%E8%B5%A4%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%8F%E5%AE%8C%E5%85%A8%E3%81%AB%E7%B7%91%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82%3CBR%20%2F%3E%E9%80%8F%E6%98%8E%E5%BA%A6%E3%81%AF%E8%89%B2%E3%81%94%E3%81%A8%E3%81%AB%E5%88%86%E3%81%91%E3%81%A6%E6%89%B1%E3%82%8F%E3%82%8C%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%82%88%E3%81%86%E3%81%AB%E8%A6%8B%E3%81%88%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%3CSTRONG%3E%E6%B7%B7%E5%90%88%E3%81%95%E3%82%8C%E3%81%9F%3C%2FSTRONG%3E%E5%90%8C%E6%A7%98%E3%81%AB%E6%B7%B7%E5%90%88%E3%81%97%E3%81%9F%E8%89%B2%E3%81%AB%E9%81%A9%E7%94%A8%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%81%97%E3%81%9F%E3%81%8C%E3%81%A3%E3%81%A6%E3%80%815%25%20%E7%B7%91%20%2B%20100%25%20%E8%B5%A4%E3%81%AF%E6%AC%A1%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_2-1689680046296.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_2-1689680046296.png%22%20style%3D%22width%3A%20370px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_2-1689680046296.png%22%20style%3D%22width%3A%20370px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F54844iF88EFB04E361276B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_2-1689680046296.png%22%20alt%3D%22hogi_2-1689680046296.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E6%9C%80%E5%BE%8C%E3%81%AE%E8%A9%A6%E8%A1%8C%EF%BC%9A%3CBR%20%2F%3E%E3%83%87%E3%83%BC%E3%82%BF%E5%9E%8B%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%97%E3%80%81%E6%9C%80%E5%A4%A7%E8%A6%81%E7%B4%84%E7%B5%B1%E8%A8%88%E9%87%8F%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_4-1689680624330.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_4-1689680624330.png%22%20style%3D%22width%3A%20388px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_4-1689680624330.png%22%20style%3D%22width%3A%20388px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F54846i9651105DB79ED68D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_4-1689680624330.png%22%20alt%3D%22hogi_4-1689680624330.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%93%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E3%80%81%E9%9B%86%E8%A8%88%E3%81%97%E3%81%9F%E3%81%84%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81%E6%96%87%E5%AD%97%E3%81%8B%E3%82%89%E6%95%B0%E5%80%A4%E3%81%AB%E5%88%87%E3%82%8A%E6%9B%BF%E3%81%88%E3%82%8B%E6%96%B9%E3%81%8C%E7%B0%A1%E5%8D%98%E3%81%AA%E5%A0%B4%E5%90%88%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%81%9F%E3%81%A0%E3%81%97%E3%80%81%E6%96%87%E5%AD%97%E5%80%A4%E3%81%AE%E9%9B%86%E8%A8%88%E3%81%AB%E3%82%82%E3%81%84%E3%81%8F%E3%81%A4%E3%81%8B%E3%81%AE%E5%8F%AF%E8%83%BD%E6%80%A7%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2FSummary-and-Tabulate-add-aggregation-option-for-Character%2Fm-p%2F659314%23U659314%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-idea-thread%20lia-fa-icon%20lia-fa-idea%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%E6%A6%82%E8%A6%81%E3%81%A8%E8%A1%A8%E4%BD%9C%E6%88%90%3A%20%E6%96%87%E5%AD%97%E5%88%97%E3%81%AE%E9%9B%86%E8%A8%88%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E8%BF%BD%E5%8A%A0%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Adt%20%26lt%3B%26lt%3B%20New%20Column(%20%22alien%22%2C%20Character%2Cnominal%2C%20set%20each%20value(%20%22-%22%20)%20)%3B%0Adt%20%26lt%3B%26lt%3B%20add%20rows(%20%7Bname%20%3D%20%22XX%22%2C%20alien%20%3D%20%22alien%22%2C%20sex%20%3D%20%22M%22%2C%20age%20%3D%2015%7D%20)%3B%0Adt%20%26lt%3B%26lt%3B%20add%20rows(%20%7Bname%20%3D%20%22YZ%22%2C%20alien%20%3D%20%22alien%22%2C%20sex%20%3D%20%22F%22%2C%20age%20%3D%2012%7D%20)%3B%0Adt%20%26lt%3B%26lt%3B%20add%20rows(%20%7Bname%20%3D%20%22KR%22%2C%20alien%20%3D%20%22alien%22%2C%20sex%20%3D%20%22F%22%2C%20age%20%3D%2017%7D%20)%3B%0A%0A%0A%2F%2F%20first%20attempt%0Adt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Variables(%20X(%20%3Asex%20)%2C%20Y(%20%3Aage%20)%2C%20Color(%20%3Aalien%20)%20)%2C%0A%20Elements(%20Heatmap(%20X%2C%20Y%2C%20Legend(%2010%20)%20)%20)%2C%0A%20SendToReport(%0A%20%20Dispatch(%7B%7D%2C%22400%22%2CScaleBox%2C%0A%20%20%20%7BLegend%20Model(%2010%2C%20Properties(%200%2C%20%7BFill%20Color(%2036%20)%7D%2C%20Item%20ID(%20%22-%22%2C%201%20)%20)%20)%7D%0A%20%20)%0A%20)%0A)%3B%0A%0A%2F%2F%20second%20attempt%3A%20increase%20transparency%20for%20non-aliens%0Adt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Variables(%20X(%20%3Asex%20)%2C%20Y(%20%3Aage%20)%2C%20Color(%20%3Aalien%20)%20)%2C%0A%20Elements(%20Heatmap(%20X%2C%20Y%2C%20Legend(%2010%20)%20)%20)%2C%0A%20SendToReport(%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22400%22%2C%0A%20%20%20ScaleBox%2C%0A%20%20%20%7BLegend%20Model(%2010%2C%20Properties(%200%2C%20%7BFill%20Color(%2036%20)%2C%20Transparency(%200.05%20)%7D%2C%20Item%20ID(%20%22-%22%2C%201%20)%20)%20)%7D%0A%20%20)%0A%20)%0A)%3B%0A%0A%2F%2F%203rd%20attempt%3A%20aggregate%0AGraph%20Builder(%0A%20Variables(%0A%20%20X(%20%3Asex%20)%2C%0A%20%20Y(%20%3Aage%20)%2C%0A%20%20Color(%20%3Aalien_num%2C%20Summary%20Statistic(%20%22Max%22%20)%20)%0A%20)%2C%0A%20Elements(%20Heatmap(%20X%2C%20Y%2C%20Legend(%2010%20)%20)%20)%2C%0A%20SendToReport(%0A%20%20Dispatch(%0A%20%20%20%7B%7D%2C%0A%20%20%20%22400%22%2C%0A%20%20%20ScaleBox%2C%0A%20%20%20%7BLegend%20Model(%0A%20%20%20%2010%2C%0A%20%20%20%20Properties(%200%2C%20%7BFill%20Color(%2036%20)%7D%2C%20Item%20ID(%20%220%22%2C%201%20)%20)%0A%20%20%20)%7D%0A%20%20)%0A%20)%0A)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-659599%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E3%83%96%E3%83%AC%E3%83%B3%E3%83%87%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%A8%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%A2%E3%83%83%E3%83%97%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E6%8E%A2%E7%B4%A2%E3%81%A8%E8%A6%96%E8%A6%9A%E5%8C%96%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Choose Language Hide Translation Bar
hogi
Level XII

Heatmap Plot - mixing colors

In my search for aliens in BigClass, today I want to generate a heatmap plot to show the aliens at a glance.

The idea: color the non-alien students green and the aliens red.

But with several non-aliens in the same age group, the alien red is just slightly visible:

hogi_3-1689680051325.png

 

Next idea:
Let's increase the transparency for non-aliens such that age groups with aliens inside get nicely visible.
I exected such cells to get red (with some greenish touch) - but they are quite green, not red.
Seems that transparency is not treated separately for different colors, but mixed as well and then applied to the mixed color.

So, 5% green + 100% red gives 

hogi_2-1689680046296.png

last attempt:
change the data type and use Max summary Statistics:

hogi_4-1689680624330.png

Sometimes it's easier to switch from character to numbers, if you want to aggregate - like here.
But aggregation of character values has also some potential:

Summary and Tabulate: add aggregation option for Character columns 

 

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "alien", Character,nominal, set each value( "-" ) );
dt << add rows( {name = "XX", alien = "alien", sex = "M", age = 15} );
dt << add rows( {name = "YZ", alien = "alien", sex = "F", age = 12} );
dt << add rows( {name = "KR", alien = "alien", sex = "F", age = 17} );


// first attempt
dt << Graph Builder(
	Variables( X( :sex ), Y( :age ), Color( :alien ) ),
	Elements( Heatmap( X, Y, Legend( 10 ) ) ),
	SendToReport(
		Dispatch({},"400",ScaleBox,
			{Legend Model( 10, Properties( 0, {Fill Color( 36 )}, Item ID( "-", 1 ) ) )}
		)
	)
);

// second attempt: increase transparency for non-aliens
dt << Graph Builder(
	Variables( X( :sex ), Y( :age ), Color( :alien ) ),
	Elements( Heatmap( X, Y, Legend( 10 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model( 10, Properties( 0, {Fill Color( 36 ), Transparency( 0.05 )}, Item ID( "-", 1 ) ) )}
		)
	)
);

// 3rd attempt: aggregate
Graph Builder(
	Variables(
		X( :sex ),
		Y( :age ),
		Color( :alien_num, Summary Statistic( "Max" ) )
	),
	Elements( Heatmap( X, Y, Legend( 10 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				10,
				Properties( 0, {Fill Color( 36 )}, Item ID( "0", 1 ) )
			)}
		)
	)
)

 

 

0 REPLIES 0