image2(genomes)
image2()所属R语言包:genomes
Display a matrix image
显示矩阵影像
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates a grid of colored rectangles to display a matrix
创建一个彩色矩形网格显示矩阵
用法----------Usage----------
image2(x, col = rev(heat.colors(24)), breaks, log = FALSE,
zeroNA=TRUE, sort01=FALSE, all=FALSE, border = NA, box.offset = 0.1,
round = 3, cex, text.cex = 1, text.col = "black", mar = c(1, 3, 3, 1),
labels = 2:3, label.offset = 0.1, label.cex = 1)
参数----------Arguments----------
参数:x
A numeric matrix, typically with row and column names
一个数字矩阵,通常用行和列名
参数:col
A vector of colors for boxes
框的颜色的向量
参数:breaks
A numeric vector of break points or number of intervals into which x is to be cut. Default is the length of col
一个破发点或间隔融入其中x是cut数的数字向量。默认的是,的col长度
参数:log
Cut values in x using a log scale, default TRUE
切x使用log规模,默认为true值
参数:zeroNA
Set zeros to NA (and color white)
设置零不适用(色白)
参数:sort01
Sort rows in descending order using the entire string of numbers
使用整个字符串的数字的降序排序行
参数:all
Display entire matrix, default is first 50 rows and columns
显示整个矩阵,默认为第50行和列
参数:border
The border color for boxes, default is no borders
为框的边框颜色,默认是没有国界的
参数:box.offset
Percent reduction in box size (a number between 0 and 1), default is 10% reduction
减少百分之箱尺寸(0和1之间的数字),默认是减少10%
参数:round
Number of decimal places to display values of x in each box
x在每个方块中显示的值的小数位数
参数:cex
Magnification size of text and labels, if specified this will replace values in both text.cex and label.cex
放大文本和标签的大小,如果指定将取代都text.cex和label.cex的价值观
参数:text.cex
Magnification size of text in cells only
仅在单元中的文字放大倍率大小
参数:text.col
Color of text in cells, use NA to skip text labels
在单元中的文本的颜色,使用NA跳过文本标签
参数:mar
Margins on four sides of plot
图四边边距
参数:labels
A vector giving sides of the plot (1=bottom, 2=left, 3=top, 4=right) for row and column labels
一个向量,给双方的图(1 =底部,2 =左,3 =顶部,4 =右行和列标签)
参数:label.offset
Amount of space between label and boxes
标签和包装盒之间的空间量
参数:label.cex
Magnification size of labels
放大倍数大小的标签
Details
详情----------Details----------
Missing values (NAs) and zeroes are assigned to the color white (unless zeroNA is FALSE) and remaining values are cut into groups and colored using the assigned values.
遗漏值(NAS)和“0”被分配到色白(除非zeroNA是FALSE)和剩余价值分为团体和使用指定的值的彩色削减。
值----------Value----------
A image plot of the matrix in x
一个矩阵的形象图x
作者(S)----------Author(s)----------
Chris Stubben
参见----------See Also----------
image
image
举例----------Examples----------
## top 20 Genus by year[今年排名前20名属由]
data(lproks)
z<-table2(genus(lproks$name), year(lproks$released), n=20)
image2(z[,-ncol(z)], sort=TRUE, mar=c(1,10,3,1), cex=.8)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|