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

R语言 TraMineR包 plot.stslist.rep()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 11:35:29 | 显示全部楼层 |阅读模式
plot.stslist.rep(TraMineR)
plot.stslist.rep()所属R语言包:TraMineR

                                        Plot method for representative sequence sets
                                         图为代表的顺序设置方法

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

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

This is the plot method for output produced by the seqrep function, i.e objects of class stslist.rep. It produces a representative sequence plot.
这是的图法产出的seqrep功能,即类stslist.rep的对象。它产生的代表序列图。


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


## S3 method for class 'stslist.rep'
plot(x, cpal = NULL, missing.color=NULL, pbarw = TRUE,
    dmax = NULL, stats=TRUE, ylab = NULL, xaxis = TRUE,
    xtlab = NULL, xtstep = NULL, cex.plot = 1, ...)



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

参数:x
an object of class stslist.rep as produced by the seqrep function.
一个对象的类stslist.rep的seqrep功能。


参数:cpal
alternative color palette to use for the states. If user specified, a vector of colors with number of elements equal to the number of states in the alphabet. By default, the 'cpal' attribute of the x object is used.
替代调色板使用的状态。如果用户指定的颜色与数量相等的元素的数量在字母表中的一个向量。默认情况下,“CPAL x对象的属性。


参数:missing.color
alternative color for representing missing values inside the sequences. By default, this color is taken from the "missing.color" attribute of the sequence object being plotted.
另一种颜色代表缺失值序列内。默认情况下,这个颜色是从“missing.color”所绘制的序列对象的属性。


参数:pbarw
when TRUE, the bar heights are set proportional to the number of represented sequences.
当TRUE,条形的高度被设置成比例的数量的表示序列。


参数:dmax
maximal theoretical distance, used for the x axis limits.
最大理论距离,用于x轴限制。


参数:stats
if TRUE (default), mean discrepancy in each subset defined by all sequences attributed to one representative sequence and the mean distance to this representative sequence are displayed.
如果TRUE(默认),平均每个子集定义的所有序列归结为一个代表序列,这代表序列的平均距离的差异。


参数:ylab
an optional label for the y axis. If set to NA, no label is drawn.
一个可选的标签为Y轴。如果设置为NA,没有标签的绘制。


参数:xaxis
controls whether a x axis is plotted.
控制是否为x轴绘制。


参数:xtlab
optional labels for the x axis ticks labels. If unspecified, the column names of the object being plotted.
x轴刻度线标签可选标签。如果未指定,则列名的对象的绘制。


参数:xtstep
optional interval at which the tick-marks and labels of the x-axis are displayed. For example, with xtstep=3 a tick-mark is drawn at position 1, 4, 7, etc... The display of the corresponding labels depends on the available space and is dealt with automatically. If unspecified, the xtstep attribute of the x object is used.
可选的时间间隔被显示的x-轴的刻度标记和标签。例如,xtstep=3一个刻度线被画在位置1,4,7,等..的相应的标签的显示取决于可用的空间和自动处理。如果未指定,xtstep属性x对象。


参数:cex.plot
expansion factor for setting the size of the font for the axis labels and names. The default value is 1. Values lesser than 1 will reduce the size of the font, values greater than 1 will increase the size.
设置轴标签和名称的字体的大小扩展系数。默认值是1。跌幅小于1的值,将减少的字体的大小的值大于1的大小会增加。


参数:...
further graphical parameters. For more details about the graphical parameter arguments, see barplot and par.
进一步的图形参数。有关图形的参数的更多详细信息,请参阅barplot和par。


Details

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

This is the plot method for the output produced by the seqrep function, i.e. objects of class stslist.rep. It produces a plot where the representative sequences are displayed as horizontal bars with width proportional to the number of sequences assigned to them. Sequences are plotted bottom-up according to their representativeness score. <br> Above the plot, two parallel series of symbols associated to each representative are displayed horizontally on a scale ranging from 0 to the maximal theoretical distance D_max. The location of the symbol associated to the representative r_i indicates on axis A the (pseudo) variance (V_i) within the subset of sequences assigned to r_i and on the axis B the mean distance MD_i to the representative.
这是图的方法,产生的输出由seqrep功能,即类stslist.rep的对象。它产生代表序列的曲线图中显示为分配给它们的序列的数目成比例的宽度的横向杆。根据其代表性得分自下而上的顺序绘制。 <BR>以上的图,两个平行的系列以水平方式显示的符号相关联的每个代表的规模,范围从0到最大理论距离D_max。的位置相关联的符号代表r_i表示上轴A(伪)方差(V_i)内的子集分配给r_i的序列,并在轴B的平均距离MD_i代表。

This method is called by the generic seqplot function (if type="r") that produces more sophisticated plots with group splits and automatic display of the color legend. The seqrplot function is a shortcut for calling seqplot with type="r".
调用此方法的通用seqplot函数(如果type="r"),产生更复杂的图与集团的分裂和传奇的色彩自动显示。 seqrplot函数调用seqplottype="r"的快捷方式。


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


## Loading the mvad data set and creating a sequence object[#载入MVAD数据集,并创建一个序列对象]
data(mvad)
mvad.labels <- c("employment", "further education", "higher education",
                    "joblessness", "school", "training")
mvad.scodes <- c("EM","FE","HE","JL","SC","TR")
mvad.seq <- seqdef(mvad, 15:86, states=mvad.scodes, labels=mvad.labels)

## Computing optimal matching distances[#计算最佳匹配距离]
submat   <- seqsubm(mvad.seq, method= "TRATE")
dist.om1 <- seqdist(mvad.seq, method="OM", indel=1, sm=submat)

## Extracting a representative set using the sequence frequency[#提取用一组有代表性的序列频率]
## as a representativeness criterion[#作为一个代表性的标准]
mvad.rep <- seqrep(mvad.seq, dist.matrix=dist.om1)

## Plotting the representative set[#绘制代表性的一组]
plot(mvad.rep)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-30 06:54 , Processed in 0.020880 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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