找回密码
 注册
查看: 267|回复: 0

R语言 seriation包 bertinplot()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:29:21 | 显示全部楼层 |阅读模式
bertinplot(seriation)
bertinplot()所属R语言包:seriation

                                        Plot a Bertin matrix
                                         绘制一个贝尔坦矩阵

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Plot a data matrix of cases and variables. Each value is represented by a symbol. Large values are highlighted. The matrix can be rearranged to make structure in the data visible (see Falguerolles et al 1997). bertin_cut_line() can be used to add cut lines (see Details).
画出的情况下,变量的数据矩阵。每个值表示的一个符号。较大的值会被高亮显示。该矩阵可重新安排,以使在可见的数据结构(见Falguerolles等人1997)。 “”bertin_cut_line()可以用来添加切割线(见详情)。


用法----------Usage----------


bertinplot(x, order = NULL, highlight = TRUE,  options = NULL)   



参数----------Arguments----------

参数:x
a data matrix. Note that following Bertin,  columns are variables and rows are cases. This behavior can be  reversed using reverse = TRUE in options.
一个数据矩阵。请注意贝尔坦,列变量和行的一些情况。这种行为是可以逆转的使用reverse = TRUE中options。


参数:order
an object of class ser_permutation to rearrange x before plotting.  If NULL, no rearrangement is performed.
对象的类ser_permutation重排x,然后再绘制。如果NULL,没有重排。


参数:highlight
a logical scalar indicating whether to use highlighting. If TRUE, all variables with values greater than the variable-wise mean are  highlighted. To control highlighting, also a  logical matrix with the same dimensions as x can be supplied.
一个逻辑标量,指示是否使用高亮显示。如果TRUE,所有变量的值大于可变明智的平均突出。要控制的高亮显示,同时作为一个逻辑矩阵x可以提供具有相同的尺寸。


参数:options
a list with options for plotting. The list can contain the following elements:
绘图选项的列表。该列表可以包含以下元素:

   


panel.function a function to produce the symbols. Currently available functions are panel.bars (default), panel.circles, panel.squares, panel.blocks and panel.lines. For circles and squares neg. values are represented by a dashed border. For blocks all blocks are the same size (can be used with shading=TRUE).
panel.function函数产生的符号。目前可提供的功能是panel.bars(默认),panel.circles,panel.squares,panel.blocks和panel.lines。对于圆形和方形负。值由虚线边框。块的块大小相同(可以使用shading=TRUE)。

reverse logical indicating whether to swap cases and variables  in the plot. The default (FALSE)  is to plot cases as columns and variables as rows.
reverse逻辑,指出是否要交换情况下,变量中的图。默认值(FALSE)作为行,列和变量的情况下,绘制。

xlab, ylab labels (default: use labels from x).
xlab, ylab标签(默认:标签x)的使用。

spacing relative space between symbols (default: 0.2).
spacing之间的相对空间符号(默认值:0.2)。

shading use gray shades to encode value instead of highlighting (default: FALSE).
shading使用灰色色调编码值,而不是高亮显示(默认值:FALSE)。

frame plot a grid to separate symbols (default: codeFALSE).
frame绘制一个网格单独的符号(默认:codeFALSE)的。

mar margins (see par).
mar利润(见par“)。

gp_labels gpar object for labels (see gpar).
gp_labels的GPAR对象的标签(见gpar“)。

gp_panels gpar object for panels (see gpar).
gp_panels的GPAR对象的面板(见gpar“)。

newpage a logical indicating  whether to start the plot  on a new page (see grid.newpage).  
newpage逻辑是否启动一个新的页面(见grid.newpage)的图。

popa logical indicating whether to pop the created viewports (see pop.viewport)?      </table>
pop逻辑表示是否要弹出的创建视口(见pop.viewport)? </ TABLE>


Details

详细信息----------Details----------

The plot is organized as a matrix of symbols. The symbols are drawn by a panel function, where all symbols of a row are drawn  by one call of the function (using vectorization). The interface for the panel function is panel.myfunction(value, spacing, hl). value is the vector of values for a row scaled between 0 and 1,  spacing contains the relative space between symbols and hl is a logical vector indicating which symbol should be highlighted.
图被组织为一个矩阵的符号。这些符号是由面板的功能,其中所有符号的行的功能由一个呼叫(使用矢量)绘制绘制。接口面板功能panel.myfunction(value, spacing, hl)。 value是介于0和1之间的一排缩放矢量的值,spacing包含之间的相对空间的符号和hl是一个逻辑矢量的指示应当被增亮的符号。

Cut lines can be added to an existing bertin plot  using bertin_cut_line(x=NULL, y=NULL).  x/y is can be a number indicating where to draw the cut line between two columns/rows. If both x and y is specified then one can select a row/column and the other can select a range to draw a line which does only span a part of the row/column. It is important to call bertinplot() with the option pop=FALSE.
切割线可以被添加到一个现有的BERTIN使用bertin_cut_line(x=NULL, y=NULL)的图。 x/y是可以是一个数字,表示绘制的切割线两行/列。如果两个x和y指定,那么可以选择的行/列和其他可以选择的范围划一条线,它跨越的行/列的一部分。这是重要的,调用bertinplot()与选项pop=FALSE。


参考文献----------References----------

de Falguerolles, A., Friedrich, F., Sawitzki, G. (1997): A Tribute to J. Bertin's Graphical Data Analysis. In: Proceedings of the SoftStat '97 (Advances in Statistical Software 6), 11&ndash;20.

参见----------See Also----------

ser_permutation, seriate, Package grid.
ser_permutation,seriate,包装grid。


实例----------Examples----------


data("Irish")
scale_by_rank <- function(x) apply(x, 2, rank)
x <- scale_by_rank(Irish[,-6])

## use the the sum of absolute rank differences[#利用绝对的等级差异的总和]
order <- c(
  seriate(dist(x, "minkowski", p = 1)),
  seriate(dist(t(x), "minkowski", p = 1))
)

## plot[#图]
bertinplot(x, order)

## some alternative displays[#显示一些替代]
bertinplot(x, order, options = list(shading = TRUE, panel = panel.blocks))
bertinplot(x, order, options = list(panel = panel.lines))
bertinplot(x, order, options = list(panel = panel.squares))
bertinplot(x, order,
    options = list(panel = panel.circles, spacing = -0.5))

## plot with cut lines (we manually set the order here)[#图切割线(我们手动设置的顺序)]
order <- ser_permutation(c(21, 16, 19, 18, 14, 12, 20, 15,
    17, 26, 13, 41,  7, 11, 5, 23, 28, 34, 31, 1, 38, 40,  
    3, 39,  4, 27, 24,  8, 37, 36, 25, 30, 33, 35,  2,
    22, 32, 29, 10,  6,  9),
    c(4, 2, 1, 6, 8, 7, 5, 3))

bertinplot(x, order, options=list(pop=FALSE))
bertin_cut_line(,4) ## horizontal line between rows 4 and 5[#行4和5之间的水平线]
bertin_cut_line(,7) ## separate "Right to Life" from the rest[#单独的“生命权”的其余部分]
bertin_cut_line(14,c(0,4)) ## separate a block of large values (vertically)[#分离的大的值的块(垂直)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-21 01:41 , Processed in 0.023168 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表