plot.IC2 | R Documentation |
Plot the IC2 object
## S3 method for class 'IC2'
plot(
x,
xlab = "Time",
ylab = "Survival",
legend = NULL,
main = "Survival Function",
lty = 1:9,
lwd = 1,
xleg = 0,
yleg = 0.15,
col = gray(0),
...
)
x |
The IC2 object, see |
xlab |
x label, default is 'Time'. |
ylab |
y label, default is 'Survival'. |
legend |
legend, default=NULL. |
main |
figure title, default is 'Survival Function' |
lty |
lty value for line, default is 1:9. |
lwd |
line width, default is 1. |
xleg |
positional parameters of the legend, default=0. |
yleg |
positional parameters of the legend, default=0.15 . |
col |
the color of the drawing, default=gray(0) |
... |
Additional arguments |
A list of arguments for the legend. Values are x, y, legend, fill, lty, bty, col.
library(survival)
result = IC2MM(Surv(left, right, type = 'interval2') ~ treatment, bcos)
plot(result, col=c('red', 'blue'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.