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!