plotnpSurv2.HM {mhazard} | R Documentation |
Uses a heat map to visualize a nonparametric bivariate survival function
Description
Plots a heat map of an estimated nonparametric bivariate survival function. This function is a wrapper for the image function with default parameters chosen to make the data easier to visualize.
Usage
plotnpSurv2.HM(
npSurv2.obj,
contour = TRUE,
col = terrain.colors(100),
xlab = "T1",
ylab = "T2",
...
)
Arguments
npSurv2.obj |
Output of the npSurv2 function. |
contour |
Should contour lines be added to the plot? Defaults to TRUE. |
col |
List of colors for the heat map. Defaults to terrain.colors(100). |
xlab |
The x-axis label. Defaults to "T1". |
ylab |
The y-axis label. Defaults to "T2". |
... |
Additional parameters to the image function. |
See Also
Examples
x <- genClayton2(1000, 0, 1, 1, 2, 2)
x.npSurv2 <- npSurv2(x$Y1, x$Y2, x$Delta1, x$Delta2)
plotnpSurv2.HM(x.npSurv2)
x2 <- genClayton2(1000, 2, 1, 1, 2, 2)
x2.npSurv2 <- npSurv2(x2$Y1, x2$Y2, x2$Delta1, x2$Delta2)
plotnpSurv2.HM(x2.npSurv2)
[Package mhazard version 0.2.3 Index]