Subscribe Bookmark RSS Feed

Scale in Cluster

miguel_prado

Community Member

Joined:

Aug 4, 2014

Hello everybody,

I am doing a Two Way Hierarchical Clustering, but I don't like the scale used for the color map. Now, the higher and lower values on my table are the limits of this scale, but I don't like them. Could be possible to put intermedium values like the limits of the scale?

Thanks a lot,

Miguel

1 REPLY
Byron_JMP

Staff

Joined:

Apr 26, 2012

Right click on the color map, select color theme, the in the dialog, drag the little pointer arrows on the custom color theme toward the middle of the figure and you'll essentially censor the ends of the data range with the same color.

Its possible to send a color map to the cluster report.

The last set of numbers in the argument are the min, center, max for the color. Think of as percent of range. If you wanted the same color to represent the second half of the range of data then a gradient with {0, 0.25, 0.5} would result in a gradient of {"red", "orange", "green"}, where the top half of the range would be green.

dt=Open("$SAMPLE_DATA/Big Class.jmp",invisible);

hc = dt<<Hierarchical Cluster(

  Y( :height, :weight ),

  Method( "Ward" ),

  Standardize( 1 ),

  Dendrogram Scale( "Distance Scale" ),

  Two Way Clustering,

  Number of Clusters( 5 ));

hc << Color Map( {"rocket", 16387, {{255, 0, 0}, {, 255, 0}, {0, 0, 255}}, {0, .5, 1}} );

Wait( 2 );

hc << Color Map( {"rocket", 16387, {{255, 0, 0}, {, 255, 0}, {0, 0, 255}}, {.5, .75, 1}} );

Wait( 2);

hc << Color Map( {"rocket", 16387, {{255, 0, 0}, {, 255, 0}, {0, 0, 255}}, {0, .25, .5}} );

Wait( 2 );

hc << Color Map({"rocket", 16387, {{255, 0, 0}, {255, 128, 0}, {255, 255, 0}, {0, 0, 0}}, {0, .2, .8, 1}});

Hope this helps,

Byron