How can I set the display range of clustergram from 0 to 1

조회 수: 4 (최근 30일)
Marouen
Marouen 2015년 11월 5일
답변: Sudhanshu Bhatt 2015년 11월 9일
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.

답변 (1개)

Sudhanshu Bhatt
Sudhanshu Bhatt 2015년 11월 9일
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

카테고리

Help CenterFile Exchange에서 Expression Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by