cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
MKostura
Level III

Hierarchical clustering platform color map columns

I have a hierarchical cluster with ~ 2700 Y -rows and 100 columns of data. When complete I want to color map the clusters to two other columns in the data.    I can do so but then the questions start.

1.  One color map is to identify the rows of data by a type (in this case a tissue type).  That accurately displays as a color for each tissue but, how do I attach a legend to the visualization for this color map?  

2. The other color map is to identify rows of data for a specific outcome (in this case activity with drug).  That display is not working properly.  When fully viewed only a small subset of the rows are accurately labeled. If the data are zoomed in to a smaller subset then the outcome coloring is accurately displayed.   

I attached a screen shot of the visual.

2 REPLIES 2

Re: Hierarchical clustering platform color map columns

Hi @MKostura ,

From what I can see, there is no way to add the legends for those 'Cell Box Plots' - I would suggest adding this to the Wish List so that the developers can be aware.

 

As a workaround - I've wrote you a JSL script that will pop those columns up as a legend plot (albeit in a separate window). Just adapt the column names to suit the names you're using in your heirachichal clustering.

dt=current data table();
cp=Cell Plot(
		Scale Uniformly( 0 ),
		Center at zero( 0 ),
		Y(:Type1, :Type 2)); //Write in the name of your columns in here!
		
cp<<legend(1);

//hide the outline box and the titles to make the appearance cleaner
report(cp)[LineupBox(1)]<<Visibility("Collapse");
report(cp)[OutlineBox(1)]<<set title("");
“All models are wrong, but some are useful”
MKostura
Level III

Re: Hierarchical clustering platform color map columns

Much obliged.  The hierarchical cluster plot is but one of a few sore points on the multivariate platform that needs some TLC.  The new column tag feature may be an excellent way to help remedy some of those issues.  For instance, using the tags to color the Y-axis on the hierarchical plot would make an even better representation.  Of course another legend is needed.

I will add this to the wish list.

Recommended Articles