This function will plot a KM curve with possible
stratification. You can specifyif you want a legend or
confidence bands as well as the units of time used.
Usage
plotkm(data, response, group = 1, pos = "bottomleft", units = "months", CI = F, legend = T, title = "")
Arguments
data
dataframe containing your data
response
character vector with names of columns to
use for response
group
string specifiying the column name of
stratification variable
pos
what position you want the legend to be.
Current option are bottomleft and topright
units
string specifying what the unit of time is
use lower case and plural
CI
boolean to specify if you want confidence
intervals