plot.IC2 {MMAD}R Documentation

Plot the IC2 object

Description

Plot the IC2 object

Usage

## S3 method for class 'IC2'
plot(
  x,
  xlab = "Time",
  ylab = "Survival",
  legend = NULL,
  main = "Survival Function",
  lty = 1:9,
  lwd = 1,
  xleg = 0,
  yleg = 0.15,
  col = gray(0),
  ...
)

Arguments

x

The IC2 object, see IC2MM.

xlab

x label, default is 'Time'.

ylab

y label, default is 'Survival'.

legend

legend, default=NULL.

main

figure title, default is 'Survival Function'

lty

lty value for line, default is 1:9.

lwd

line width, default is 1.

xleg

positional parameters of the legend, default=0.

yleg

positional parameters of the legend, default=0.15 .

col

the color of the drawing, default=gray(0)

...

Additional arguments

Value

A list of arguments for the legend. Values are x, y, legend, fill, lty, bty, col.

Examples


library(survival)
result = IC2MM(Surv(left, right, type = 'interval2') ~ treatment, bcos)

plot(result, col=c('red', 'blue'))



[Package MMAD version 1.0.0 Index]