R/plotKM.R

Defines functions plotKM

Documented in plotKM

#' Plot function for pooled Kaplan-Meier estimates
#'
#' A plot of survival curves is produced.
#'
#' @param x a data.frame contains pooled estimates of survival function generated from function 'km.pool'.
#'
#' @seealso km.pool
#'
#' @export
#'


plotKM <- function(x){
  #require(survival)
  class(x) <- 'survfit'
  graphics::plot(x,ylab="Survival",xlab="Time")
}

Try the NNMIS package in your browser

Any scripts or data that you put into this service are public.

NNMIS documentation built on May 1, 2019, 8:46 p.m.