Description Usage Arguments Value Examples
Imports: ggplot2
1 |
data |
The data to be displayed in this layer. There are three options: If A A |
mapping |
aes object, created with aes(). Provide x (time) and y (status). Optionally you can provide color and linetype to distinguish conditions. For the status: NA will be irgnored, 1 = dropped out, 2 = dead, any other value = alive. |
ticks |
character, either "segment" or "point". If specified as "point", additional geom_point options can be specified, such as shape |
surv_pretty |
boolean, if TRUE sets certain options to make the plot more pretty |
... |
Other arguments passed on to |
a list of two ggplot2 layer objects (geom_path for the lines and geom_segment for the ticks) that can directly be added to a ggplot2 object
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.