How can I set the display range of clustergram from 0 to 1
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Expression Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!