| plotSurv | R Documentation |
Plot the survival curves (or cumulative hazard) and their difference for
objects returned by function survCurve or survDiff. By using
ggplot2 plotting system, the plots generated are able to be further
customized properly.
plotSurv(
object,
legendName = "",
conf.int = FALSE,
smooth = FALSE,
lty,
col,
...
)
object |
An object returned by function |
legendName |
An optional name for the figure legend. |
conf.int |
A logical value indicating whether to plot the credible interval(s). |
smooth |
A logical value, default |
lty |
An optional numeric vector indicating line types specified to different groups: 0 = blank, 1 = solid, 2 = dashed, 3 = dotted, 4 = dotdash, 5 = longdash, 6 = twodash. |
col |
An optional character or numeric vector indicating line colors specified to different groups. |
... |
Other arguments for future usage. |
A ggplot object.
bayesCox, survCurve, and
survDiff.
## See the examples in bayesCox.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.