How can I set the display range of clustergram from 0 to 1
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everybody,
I am clustering a jaccard index based distance matrix, using clustergram. The distances are between 0 and 1. Although the option DisplayRangeValue of clustergram takes one value and sets the color map between [-value,value],in other words if it is set to 1 the range will be [-1,1]. e.g. CGobj = clustergram(Data, ...'DisplayRange', DisplayRangeValue, ...) Are you aware of way to set an assymetric range, like [0,1]? Thanks for your help.
0 Kommentare
Antworten (1)
Sudhanshu Bhatt
am 9 Nov. 2015
Hi Marouen Ben Guebila,
Unfortunately, the ability to change the display range for the colour scale directly is not available for the CLUSTERGRAM function in the Bioinformatics Toolbox.
As a workaround, create a plot with the CLUSTERGRAM in it, and then set CLIM property.
>>cg = clustergram(...); % Create the clustergram object
>>cgAxes =plot(cg); % Use the plot function to plot to a separate figure and output the axes
>>set(cgAxes, 'Clim', [80,90]) % Set colour limit or other axes properties.
>>colormap hot; %You can also change the colormap if you want
Hope this helps!
Thanks
Sudhanshu Bhatt
0 Kommentare
Siehe auch
Kategorien
Mehr zu Expression Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!