| autoplotTableAndPlot | R Documentation |
Arrange a survival plot with corresponding table and legend.
## S3 method for class 'tableAndPlot' autoplot(object, ..., hideTabLeg = TRUE, tabHeight = 0.25)
object |
An object of class |
... |
Additional arguments (not implemented). |
hideTabLeg |
Hide table legend.
|
tabHeight |
Table height, as a fraction/ proportion of the whole.
|
Arguments to plotHeigth and tabHeight are
best specified as fractions adding to 1,
A graph, plotted with gridExtra::grid.arrange.
This method is called by print.tableAndPlot
and by print.stratTableAndPlot.
Chris Dardis. Based on existing work by R. Saccilotto, Abhijit Dasgupta, Gil Tomas and Mark Cowley.
## Not run:
data("kidney", package="KMsurv")
autoplot(survfit(Surv(time, delta) ~ type, data=kidney), type="fill")
autoplot(ten(survfit(Surv(time, delta) ~ type, data=kidney)), type="fill")
data("bmt", package="KMsurv")
s2 <- survfit(Surv(time=t2, event=d3) ~ group, data=bmt)
autoplot(s2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.