groupedHeatmap(geneplotter)
groupedHeatmap()所属R语言包:geneplotter
Heatmap of a matrix with grouped rows and columns
热图的一个分组的行和列的矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function uses grid.rect and grid.rect to draw a heatmap with grouped rows and columns.
该功能使用了grid.rect和grid.rect热图绘制分组的行和列。
用法----------Usage----------
groupedHeatmap(z, frow, fcol,
fillcolours = c("#2166ac","#4393c3","#92c5de","#d1e5f0","#fefefe","#fddbc7","#f4a582","#d6604d","#b2182b"),
bordercolour = "#e0e0e0",
zlim = range(z, na.rm=TRUE))
参数----------Arguments----------
参数:z
A matrix with row and column names.
一个矩阵的行和列名。
参数:frow
A factor of length nrow(z) indicating the row grouping.
一个factor长度nrow(z)指示行分组。
参数:fcol
A factor of length ncol(z) indicating the column grouping.
一个factorncol(z)指示列分组长度。
参数:fillcolours
A character vector of colours from which the colour map is obtained through interpolation.
一个character矢量彩色图通过插值得到的颜色。
参数:bordercolour
Either a character vector of length 1, specifying the border colour of the heatmap tiles, or NULL or NA, which indicates that the border colour should match the fill colour.
character向量长度为1,指定的热图瓷砖的边框颜色,或NULL或NA,这表明,边框的颜色应与填充颜色。
参数:zlim
Lower and upper limit of z values represented in the colour map.
z在彩色图上表示的值的下限和上限。
Details
详情----------Details----------
The function can be called within other drawing operations from the grid package, e.g. within a viewport.
函数可以被称为网格包内其他绘图操作,例如:在视口中。
值----------Value----------
The function is called for its side effect, drawing text and
调用该函数绘制文本和它的副作用,
作者(S)----------Author(s)----------
Wolfgang Huber <a href="http://www.ebi.ac.uk/huber">http://www.ebi.ac.uk/huber</a>
参见----------See Also----------
grid.text, grid.rect
grid.text,grid.rect
举例----------Examples----------
data("mtcars")
groupedHeatmap(
scale(mtcars),
frow = factor(sapply(strsplit(rownames(mtcars), " "), "[", 1)),
fcol = factor(round(seq_len(ncol(mtcars))/3)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|