plot-method {reda} | R Documentation |
Plot Baseline Rate or Mean Cumulative Function (MCF)
Description
S4 class methods plotting sample MCF from data, estimated MCF, or estimated
baseline hazard rate function from a fitted model by using ggplot2
plotting system. The plots generated are thus able to be further customized
properly.
Usage
## S4 method for signature 'mcf.formula,missing'
plot(
x,
y,
lty,
col,
legendName,
legendLevels,
conf.int = FALSE,
mark.time = FALSE,
addOrigin = FALSE,
...
)
## S4 method for signature 'mcf.rateReg,missing'
plot(x, y, conf.int = FALSE, lty, col, ...)
## S4 method for signature 'baseRate.rateReg,missing'
plot(x, y, conf.int = FALSE, lty, col, ...)
## S4 method for signature 'mcfDiff,missing'
plot(
x,
y,
lty,
col,
legendName,
legendLevels,
conf.int = TRUE,
addOrigin = FALSE,
...
)
Arguments
x |
An object used to dispatch a method. |
y |
An argument that should be missing and ignored now. Its existence
is just for satisfying the definition of generaic function |
lty |
An optional numeric vector indicating line types specified to different groups: 0 = blank, 1 = solid, 2 = dashed, 3 = dotted, 4 = dotdash, 5 = longdash, 6 = twodash. |
col |
An optional character vector indicating line colors specified to different groups. |
legendName |
An optional length-one charactor vector to specify the
name for grouping each unique row in |
legendLevels |
An optional charactor vector to specify the levels for
each unique row in |
conf.int |
A logical value indicating whether to plot confidence
interval. The default value is |
mark.time |
A logical value with default value |
addOrigin |
A logical value indicating whether the MCF curves start
from origin time. The default value is |
... |
Other arguments for further usage. |
Value
A ggplot
object.
See Also
mcf
for estimation of MCF;
rateReg
for model fitting.
Examples
## See examples given in function mcf and rateReg.