Learn R Programming

rtemis (version 0.79)

mplot3.surv: mplot3: Survival Plots

Description

Plots survival step functions using mplot3.xy

Usage

mplot3.surv(x, lty = 1, lwd = 2, alpha = 1, col = NULL,
  normalize = TRUE, cex = 1.2, xlab = "Time", ylab = "Survival",
  main = "Kaplan-Meier estimate with 95% CI", group.legend = NULL,
  group.title = "", group.names = NULL, group.side = 3,
  group.adj = 0.98, group.padj = 2, group.at = NA,
  par.reset = TRUE, ...)

Arguments

x

Survival object / list of Survival objects created using survival::Surv

lty

Integer: Line type. Default = 1. See par("lty")

lwd

Float: Line width. Default = 2

alpha

Float: Alpha for lines. Default = 1

normalize

Logical: If TRUE: drange x to 0:100

cex

Float: Character expansion factor (See ?par)

xlab

String: x-axis label

ylab

String: y-axis label

main

String: Plot title

group.legend

Logical: If TRUE, place group.names in a legend

group.title

String: Group title, shown above group names. e.g. if group names are c("San Francisco", "Philadelphia"), group.title can be "Place of residence"

group.names

(Optional) If multiple groups are plotted, use these names if group.title = TRUE

...

Additional arguments to pass to mplot3.xy