描述----------Description----------
The follow-up histories represented by a Lexis object can be plotted using one or two dimensions. The two dimensional plot is a Lexis diagram showing follow-up time simultaneously on two time scales.
可以使用一个或两个维度绘制由法律数据库对象表示的后续历史。二维图是一个法律数据库图的随访时间,同时在两个时间尺度。
用法----------Usage----------
## S3 method for class 'Lexis'
plot(x=Lexis( entry=list(Date=1900,Age=0), exit=list(Age=0) ),
time.scale = NULL, type="l", breaks="lightgray", ...)
## S3 method for class 'Lexis'
points(x, time.scale = options()[["Lexis.time.scale"]] , ...)
## S3 method for class 'Lexis'
lines(x, time.scale = options()[["Lexis.time.scale"]], ...)
## S3 method for class 'Lexis'
PY.ann(x, time.scale = options()[["Lexis.time.scale"]], digits=1, ...)
参数----------Arguments----------
参数:x
An object of class Lexis. The default is a bogus Lexis object, so that plot.Lexis can be called without the first argument and still produce a(n empty) Lexis diagram. Unless arguments xlim and ylim are given in this case the diagram is looking pretty daft.
对象的类Lexis。默认是假的Lexis对象,使plot.Lexis可以被称为没有第一个参数,仍然会产生一个(N空)法律数据库图表。除非参数xlim和ylim在这种情况下,图看起来相当愚蠢的。
参数:time.scale
A vector of length 1 or 2 giving the time scales to be plotted either by name or numerical order
要绘制的名字或数字顺序发出的时间尺度的矢量长度1或2
参数:type
Character indication what to draw: "n" nothing (just set up the diagram), "l" - liefelines, "p" - endpoints of follow-up, "b" - both lifelines and endpoints.
字符显示要画什么:“N”没有(刚刚成立的图),“L” - liefelines,“P” - 端点的后续,“B” - 生命线和终点。
参数:breaks
a string giving the colour of grid lines to be drawn when plotting a split Lexis object. Grid lines can be suppressed by supplying the value NULL to the breaks argument
图分裂的法律数据库对象时,要绘制一个字符串,给出网格线的颜色。所提供的价值NULLbreaks参数,可以抑制网格线
参数:digits
Numerical. How many digits after the demimal points should be when plotting the person-years.
数值。多少个数字后demimal点的人,应该是打印时。
参数:...
Further graphical parameters to be passed to the plotting methods. Grids can be drawn (behind the life lines) using the following parameters in plot:
要传递到的绘图方法进一步进行图形参数。网格可以画背后的生活在plot使用以下参数:
grid If logical, a background grid is set up using the axis ticks. If a list, the first component is used as positions for the vertical lines and the last as positions for the horizontal. If a nunerical vector, grids on both axes are set up using the distance between the numbers.
grid如果逻辑,背景网格设置使用轴刻度线。如果列表中,第一组分是用作垂直线作为水平方向的位置和最后的位置。如果nunerical向量,在两个轴上的网格建立使用的号码之间的距离。
col.grid="lightgray" Color of the background grid.
col.grid="lightgray"颜色背景网格。
lty.grid=2 Line type for the grid.
lty.grid=2电网线路类型。
coh.grid=FALSE Should a 45 degree grid be plotted?
coh.grid=FALSE如果一个45度的网格绘制?
</table>
</ TABLE>
Details
详细信息----------Details----------
The plot method for Lexis objects traces “life lines” from the start to the end of follow-up. The points method plots points at the end of the life lines.
Lexis对象痕迹“生命线”从开始到结束的后续图的方法。 points方法图点结束时的生活。
If time.scale is of length 1, the life lines are drawn horizontally, with the time scale on the X axis and the id value on the Y axis. If time.scale is of length 2, a Lexis diagram is produced, with diagonal life lines plotted against both time scales simultaneously.
如果time.scale的长度为1,生活线绘制水平,与时间尺度上的X轴和Y轴的值id。如果time.scale是长度为2,法律数据库,与图绘制对角线生活线同时针对这两种时间尺度。
If lex has been split along one of the time axes by a call to splitLexis, then vertical or horizontal grid lines are plotted (on top of the life lines) at the break points.
如果lex已分裂时间轴沿一个通过调用splitLexis,然后垂直或水平网格线绘制(顶部的寿命线)在中断点。
PY.ann writes the length of each (segment of) life line at the middle of the line. Not advisable to use with large cohorts. Another example is in the example file for occup.
PY.ann写入每个(段)在中间行的行寿命的长度。不建议使用大样本。另一个例子是在示例文件occup的。
(作者)----------Author(s)----------
Martyn Plummer
参见----------See Also----------
Lexis, splitLexis
Lexis,splitLexis