R/01.plot.isoph.R

Defines functions plot.isoph

plot.isoph=function(x,...){
  y=exp(x$iso.cov[,2]) #HR
  z=x$iso.cov[,1]
  zlab=colnames(x$iso.cov)[1]
  ylab="Isotonic Covariate HR"

  if(x$shape=="increasing"){
    type='s'
  }else if(x$shape=="decreasing"){
    type='S'
  }

  plot(y=y,x=z, xlab=zlab, ylab=ylab, type=type)
}

Try the isoSurv package in your browser

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

isoSurv documentation built on Sept. 2, 2023, 9:08 a.m.