search for: x_cut

Displaying 1 result from an estimated 1 matches for "x_cut".

2010 Sep 22
1
legend
Hi, there is a function to plot survival curves: library(survival) plot.KM <- function(survival, x, x_cut.off, main='', label='') { plot(survfit(survival ~ I(x >= x_cut.off)), main=main) legend('bottomleft', c(expression(label >= x_cut.off),expression(label < x_cut.off))) } Now, I need to determine as the argument what appears in the legend. I want plot.KM(survival, x,...