Learn R Programming

reda (version 0.2.1)

plotMcf: Plot Mean Cumulative Function (MCF)

Description

An S4 class generic function dispatched to a certain method to plot mean cumulative function by using ggplot2 plotting system. The plots generated are able to be further customized properly.

Usage

plotMcf(object, conf.int = FALSE, ...)
"plotMcf"(object, conf.int = FALSE, mark.time = FALSE, lty, col, ...)
"plotMcf"(object, conf.int = FALSE, lty, col, ...)

Arguments

object
An object used to dispatch a method.
conf.int
A logical value indicating whether to plot confidence interval. The default value is FALSE.
...
Other arguments for further usage.
mark.time
A logical value with default FALSE. If TRUE, each censoring time is marked by "+" on the MCF curves. Otherwise, the censoring time would not be marked.
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.

Value

A ggplot object.

Methods (by class)

  • sampleMcf: Plot sample MCF from data.
  • rateRegMcf: Plot estimated MCF from a fitted model.

See Also

mcf for estimation of MCF; rateReg for model fitting.

Examples

Run this code
## See examples given in function mcf and rateReg.

Run the code above in your browser using DataLab