powered by
twosamp
Plots one-sample survival curves and confidence intervals, paneled by group. plot.twosamp uses base R, whereas plot.twosamptidy use ggplot.
plot.twosamp
plot.twosamptidy
# S3 method for twosamp plot(x, ...)
twosamp object (created by function bpcp2samp or delta2samp)
bpcp2samp
delta2samp
Extra parameters to be passed. Other parameters are usually graphical parameters passed to plot and segment calls within function.
data(leuk2) ## bpcp2samp creates twosamp object compare_leuk2<-bpcp2samp(leuk2$time,leuk2$status, leuk2$treatment) # creates base R plot plot(compare_leuk2)
Run the code above in your browser using DataLab