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.## S3 method for class 'kaps':
plot(x, y, ...)kapsplot.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, ilocfit. 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.
kaps
km.curve