| plot_boot_curve | R Documentation |
Plot bootstrap estimate with confidence ribbon
plot_boot_curve(
boot,
grid = NULL,
title = "Bootstrap curve",
xlab = "t",
ylab = "estimate",
x_scale = 1,
y_scale = 1,
x_unit = NULL,
y_unit = NULL
)
boot |
List returned by |
grid |
Optional x-axis grid. If omitted, uses |
title |
Plot title. |
xlab |
X-axis label. |
ylab |
Y-axis label. |
x_scale |
Positive divisor applied to the x-axis values before plotting. |
y_scale |
Positive divisor applied to the y-axis values before plotting. |
x_unit |
Optional unit label appended to the x-axis title. |
y_unit |
Optional unit label appended to the y-axis title. |
A ggplot object.
time <- c(0, 1, 2)
xA <- as_survmat(rbind(c(1.0, 0.9, 0.7), c(1.0, 0.8, 0.6)), time, group = c("A", "A"))
xB <- as_survmat(rbind(c(1.0, 0.95, 0.8), c(1.0, 0.85, 0.7)), time, group = c("B", "B"))
boot <- boot_rmst_delta(xA, xB, R = 10, seed = 1)
plot_boot_curve(boot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.