Learn R Programming

kaps (version 1.0-0)

plot: Visualize an object "kaps"

Description

plot method for "kaps" with extended facilities. It provides four panels consisting of the scatter plot, the Kaplan-Meier survival curves, overall p-values, and the worst-pair p-values against K.

Usage

## S3 method for class 'kaps':
plot(x, y, ...)

Arguments

x
an object from kaps
y
missing object
...
other arguments to the plot.default function can be passed here. Among them, the argument K is a scalar object that plots the Kaplan-Meire survival curves for the K. If missing, i

Details

This function generates four plots. The top left panel is the scatterplot of survival times against the selected prognostic factor with the line fitted by local censored regression using locfit. The top right panel is the Kaplan-Meier survival curves for the subgroups selected with the optimal K. At the bottom are displayed the plots of the overall and worst-pair p-values against K. The dotted lines indicate thresholds for significance 0.05.The outputs for a specific K can also be printed out with the argument K.

For the sake of the Kaplan-Meire curve with estimated subgroups, the function km.curve is provided.

See Also

kaps km.curve