Learn R Programming

bpcp (version 1.5.1)

plot.twosamp: Plot methods for twosamp objects.

Description

Plots one-sample survival curves and confidence intervals, paneled by group. plot.twosamp uses base R, whereas plot.twosamptidy use ggplot.

Usage

# S3 method for twosamp
plot(x, ...)

Arguments

x

twosamp object (created by function bpcp2samp or delta2samp)

...

Extra parameters to be passed. Other parameters are usually graphical parameters passed to plot and segment calls within function.

Examples

Run this code
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