visualBivarTimeToEvent {survSpearman} | R Documentation |
Plots bivariate right-censored data.
Description
Plots bivariate right-censored data distinguishing between uncensored, singly censored, and doubly censored observations.
Usage
visualBivarTimeToEvent(X, Y, deltaX, deltaY, labelX, labelY,
xlim = NULL, ylim = NULL, dotSize = 0.7,
segLength=abs(mean(diff(c(X, Y)))), scaleLegendGap = 1,
legendCex = 1, labCex = 1, axisCex = 1)
Arguments
X |
Time to event or censoring for variable |
Y |
Time to event or censoring for variable |
deltaX |
Event indicator for variable |
deltaY |
Event indicator for variable |
labelX |
Label for the X event. |
labelY |
Label for the Y event. |
xlim |
The range for the X-axis (the same as parameter |
ylim |
The range on the X-axis (the same as parameter |
dotSize |
The size of the points (the same as parameter |
segLength |
The length of the segment representing censored observations. |
scaleLegendGap |
Increases (if > 1) or decreases (if < 1) the distance between the labels in the legend; |
legendCex |
The size of the legend font (the same as parameter |
labCex |
The size of |
axisCex |
The size of axis labels (the same as parameter |
Details
Plots bivariate right-censored data distinguishing between uncensored, singly censored, and doubly censored observations. The singly and doubly censored observations are plotted as diamonds and squares, respectively, with a short segment on the right, which length is the same for X and Y. The legend is always plotted in the left upper corner.
Value
None
Author(s)
Svetlana K Eden, svetlanaeden@gmail.com
Examples
X = c(0.5, 0.61, 0.6, 0.8, 0.78, 0.7, 0.9)
Y = c(0.44, 0.15, 0.77, 0.88, 0.22, 0.99, .33)
deltaX = c(1, 0, 1, 1, 0, 1, 0)
deltaY = c(1, 0, 1, 0, 1, 1, 1)
visualBivarTimeToEvent(X, Y, deltaX, deltaY, xlim = c(0, 1), ylim = c(0, 1),
labelX = "X", labelY = "Y", segLength = 0.05)