multiHeatmap(Repitools)
multiHeatmap()所属R语言包:Repitools
Superfigure plots
superfigure图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function takes a list of matrices and plots heatmaps for each one. There are several features for the spacing (X and Y), colour scales, titles and label sizes. If a matrix has row and/or column names, these are added to the plot.
这个函数接受一个矩阵图热图的每一个列表。间距(X和Y),色标,标题和标签尺寸有几个特点。如果一个矩阵的行和/或列名,这些被添加到图。
用法----------Usage----------
multiHeatmap(dataList, colourList, titles = NULL, main = "", showColour = TRUE, xspace = 1, cwidth = 0.5, ystarts = c(0.05, 0.9, 0.925, 0.95, 0.98), rlabelcex = 1, clabelcex = 1, titlecex = 1.2, maincex = 1.5, scalecex = 0.7, offset=.001)
参数----------Arguments----------
参数:dataList
A list of matrices to be plotted as different panels
一个list矩阵将绘制成不同的面板
参数:colourList
A list of colourscales (if length 1, it is copied for all panels of the plot)
一个listcolourscales的(如果长度为1,它是复制图板)
参数:titles
A vector of panel titles
一个面板职称的向量
参数:main
A main title
一个主要的称号
参数:showColour
logical or logical vector, whether to plot the colour scale
逻辑或逻辑的向量,是否绘制色阶
参数:xspace
The space between the panels (relative to number of columns). This can be either a scalar or a vector of length(dataList)+1
面板之间的空间(相对列数)。这可以是一个标量或向量的length(dataList)+1
参数:cwidth
widths of the colour scales relative to the width of the panels
色阶面板的宽度相对宽度
参数:ystarts
A vector of length 5 of numbers between 0 and 1 giving the relative Y positions of where the heatmaps, colourscale labels, colour scales, panel titles and main title (respectively) start
一个长度为5的数字0和1之间的热图,colourscale标签,色标,面板标题,主标题(分别)开始的相对Y位置向量
参数:rlabelcex
character expansion factor for row labels
字符行标签的膨胀系数
参数:clabelcex
character expansion factor for column labels
字符列标签的膨胀系数
参数:titlecex
character expansion factor for panel titles
字符面板职称的膨胀系数的
参数:maincex
character expansion factor for main title
主标题字符膨胀系数
参数:scalecex
character expansion factor for colour scale labels
字符颜色刻度标签的膨胀系数
参数:offset
small offset to adjust scales for point beyond the colour scale boundaries
小胶印机来调整颜色的规模边界以外的点尺度
值----------Value----------
This function is called for its output, a plot in the current device.
此功能称为它的输出,在当前设备的图。
作者(S)----------Author(s)----------
Mark Robinson
举例----------Examples----------
library(gplots)
cL <- NULL
br <- seq(-3,3,length=101)
col <- colorpanel(low="blue",mid="grey",high="red",n=100)
cL[[1]] <- list(breaks=br,colors=col)
br <- seq(-2,2,length=101)
col <- colorpanel(low="green",mid="black",high="red",n=100)
cL[[2]] <- list(breaks=br,colors=col)
br <- seq(0,20,length=101)
col <- colorpanel(low="black",mid="grey",high="white",n=100)
cL[[3]] <- list(breaks=br,colors=col)
testD <- list(matrix(runif(400),nrow=20),matrix(rnorm(100),nrow=20),matrix(rpois(100,lambda=10),nrow=20))
colnames(testD[[1]]) <- letters[1:20]
rownames(testD[[1]]) <- paste("row",1:20,sep="")
multiHeatmap(testD,cL,xspace=1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|