plot.kkm: Plot fitted survival curves

Description Usage Arguments Value

View source: R/survival_kernel_knn.R

Description

Plot fitted survival curves

Usage

1
2
3
## S3 method for class 'kkm'
plot(x, type = c("test", "train"), subset, xlab = "Time",
  ylab = "Survival", ...)

Arguments

x

'kkm' object from 'kkm'

type

Either 'test' or 'train'

subset

Subset of samples to plot, either a vector of logical or subscript/index

xlab

Name of x label

ylab

Name of y label

...

Other parameters passed to 'lattice::xyplot'

Value

A 'trellis' object generated by 'lattice::xyplot'


linxihui/sml documentation built on May 21, 2019, 6:39 a.m.