plot.stslist.meant(TraMineR)
plot.stslist.meant()所属R语言包:TraMineR
Plot method for objects produced by the seqmeant function
图方法产生的对象的seqmeant功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is the plot method for objects of class stslist.meant produced by the seqmeant function.
这是图法产生的seqmeant功能的的类stslist.meant的对象。
用法----------Usage----------
## S3 method for class 'stslist.meant'
plot(x, cpal = NULL, ylab = NULL, yaxis = TRUE, xaxis = TRUE,
cex.plot = 1, ylim = NULL, ...)
参数----------Arguments----------
参数:x
an object of class stslist.meant as produced by the seqmeant function.
类的一个对象stslist.meant产生的seqmeant函数。
参数: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 'seqdata' sequence object is used (see seqdef).
替代调色板使用的状态。如果用户指定的颜色与数量相等的元素的数量在字母表中的一个向量。默认情况下,“(见cpal)seqdataseqdef序列对象属性的”。
参数:ylab
an optional label for the y axis. If set to NA, no label is drawn.
一个可选的标签为Y轴。如果设置为NA,没有标签的绘制。
参数:yaxis
controls whether the y axis is plotted. Default is TRUE.
控制是否绘制在y轴上。默认是TRUE。
参数:xaxis
if TRUE (default) the xaxis is plotted.
如果TRUE(默认),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的大小会增加。
参数:ylim
an optional vector setting the limits for the y axis. If NULL (default), limits are set to (0, max. sequence length).
一个可选的矢量设置为y轴的限制。如果NULL(默认),限制被设置为(0,最大序列长度)。
参数:...
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 seqmeant function, i.e., objects of class stslist.meant. It produces a plot showing the mean times spent in each state of the alphabet.
这是小区的输出seqmeant功能,即对象的类stslist.meant生产方法。它产生一个图,显示的平均时间花费在每个州的字母。
This method is called by the generic seqplot function (if type="mt") that produces more sophisticated plots, allowing grouping and automatic display of the states legend. The seqmtplot function is a shortcut for calling seqplot with type="mt".
调用此方法的通用seqplot函数(如果type="mt"),产生更复杂的图,允许分组和自动显示的传说。 seqmtplot函数调用seqplottype="mt"的快捷方式。
实例----------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 the mean times[#计算的平均时间]
mvad.meant <- seqmeant(mvad.seq)
## Plotting[#绘图]
plot(mvad.meant, main="Mean durations in each state of the alphabet")
## Changing the y axis limits[#改变y轴的限制]
plot(mvad.meant, main="Mean durations in each state of the alphabet",
ylim=c(0,40))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|