这篇文章将为大家详细讲解有关Evolview如何绘制进化树时添加热图,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
Evolview绘制进化树时添加热图
Evolview绘制进化树时,可以根据自己的设置添加热图信息。
[1]. 新建一个项目,使用新的进化树“(A:0.1,(B:0.2,(C:0.3,D:0.4)100:0.05)100:0.1)90:0.43;”。
[2]. 数据集格式如下:
#heatmap !legendTitle Example of heatmap #图例说明 !showLegends 1 #是否显示图例 0:隐藏,1:显示 #!defaultStrokeColor pink #!defaultStrokeWidth 2 !colorgradient blue, yellow,red #使用指定的颜色生成颜色渐变 !colorgradientMarkLabel 0,5,10,15,20,25 #图例中颜色梯度 # -- heatmap column labels -- !showHeatMapColumnLabel 1 #是否显示热图列标签 !heatmapColumnLabels e1,e2,e3,control #设置热图列标签 # -- heatmap -- !heatmap margin=2,colwidth=30,roundedcorner=2 #热图显示设置 # -- show data value !showdataValue show=1,fontsize=12,fontitalic=0,textalign=start #数据显示设置 A -2,3,5,0 B 7,9,10,23 C 13,15,19,8 D 20,22,25,4
修改选项及参数说明:
The following 'modifiers' (Key-Value pairs) are supported for heatmap:
universal modifiers | ||
!Title or !Legend | text | title of the legend; default = name of the dataset |
!ShowLegends | 0 or 1 | 0 : hide legends; 1 : show legends |
!opacity | float number between 0 to 1 | opacity of the dataset |
modifiers shared with Bar Charts and Dot plots | modifiers that apply to both Bar Charts, Dot Plots and Heatmap | |
!gridlabel or !axis or !showHeatMapColumnLabel | none, or any integer; 0 : hide column labels; >= 1: show column labels; note: using !showHeatMapColumnLabel here is recommended | show heatmap column labels (note: does not work in circular modes) |
!columnLabelStyle | tweak column label styles; see section 'colum label style' for detail | |
!defaultStrokeWidth | any value >= 0 | stroke width that applies to both legends and the chart |
!defaultStrokeColor | any valid color name such as red and yellow and html hex color such as #FF00FF | stroke color that applies to both legends and the chart; see more about stroke colors; also see the section bellow |
heatmap specific | ||
!colorgradient or !colorspectrum | two or more valid colors separated by ','; a color gradient will be generated using the specified colors (see more examples bellow); this modifier is mandatory | valid colors include html color names (such as red, yellow, lightblue; see here for a complete list of supported html color names) as well as html hex colors such as #FF00FF |
!colorgradientMarkLabel or !colorgradientMarkLabels | one or more valid numbers separated by ',' such as -3,2,5,7,9,10.5; see bellow for more examples | numbers to be plotted in the legend next to the color gradient |
!heatmapColumnLabel or !heatmapColumnLabels or | one or more text strings separated by ',', such as trait 1,trait 2,control; see bellow for more examples | texts to be plotted on the top of the heatmap, each text string corresponds to a column of the heatmap; NOTE not implemented yet in circular mode |
!colorGradientPixelHeight or !colorGradientHeight | any integer > 1 | pixel height of the color gradient in the legend, default = 100 |
!colorGradientPixelWidth or !colorGradientWidth | any integer > 1 | pixel width of the color gradient in the legend, default = 15 |
!heatmap | see section the !heatmap modifier | optional |
show data values | see section show data value for more details | |
unsupported modifiers | modifiers that are not supported in Heatmap | |
!Groups or !LegendText | ||
!LegendStyle or !Style | ||
!LegendColors or !Colors | ||
!grid | ||
!plotwidth |
关于“Evolview如何绘制进化树时添加热图”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。