Learn R Programming

Surrogate (version 3.2.5)

plot.survbin: Generates a plot of the estimated treatment effects for the surrogate endpoint versus the estimated treatment effects for the true endpoint for an object fitted with the 'survbin()' function.

Description

Generates a plot of the estimated treatment effects for the surrogate endpoint versus the estimated treatment effects for the true endpoint for an object fitted with the 'survbin()' function.

Usage

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

Value

A plot of the type ggplot

Arguments

x

An object of class 'survbin' fitted with the 'survbin()' function.

...

...

Examples

Run this code
if (FALSE) {
data("colorectal")
fit_bin <- survbin(data = colorectal, true = surv, trueind = SURVIND, surrog = responder,
                   trt = TREAT, center = CENTER, trial = TRIAL, patientid = patientid)
plot(fit_bin)
}

Run the code above in your browser using DataLab