| plotSurv {survMisc} | R Documentation |
Surv object.Plot a Surv object.
## S3 method for class 'Surv' plot(x, l = 3, ...)
x |
A |
l |
length of arrow. Length is |
... |
Additional arguments.
|
A graph (base graphics).
The type of graph depends on the type of the Surv object.
This is given by attr(s, which="type") :
counting |
Lines with an arrow pointing right if right censored. |
right |
Lines with an arrow pointing right if right censored. |
left |
Lines with an arrow pointing left if left censored. |
interval |
If censored:
If not censored:
|
?graphics::arrows
?graphics::segments
df0 <- data.frame(t1=c(0, 2, 4, 6, NA, NA, 12, 14),
t2=c(NA, NA, 4, 6, 8, 10, 16, 18))
s5 <- Surv(df0$t1, df0$t2, type="interval2")
plot(s5)