Description Usage Arguments Value Examples
Create a grid of survival ggplot2 figures quickly, with little ability to modify individual components
1 2 3 4 5 6 7 8 |
formula |
A formula object, which must have a 'Surv' object as the response on the left of the '~' operator and the grouping term (often the treatment) on the right. |
data |
A data frame in which to interpret the variables named in the formula |
timepts |
A numeric vector of time points to show on the x-axis |
colors |
Custom colors for each group line |
ribbon |
Logical to show a semi-transparent confidence band ribbon |
heights |
A vector of two numeric values that indicate the ratio of the first row to the second |
A grid figure
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.