Some users like background colors, and it may be helpful to have grid lines
to read off e.g. probabilities from a Kaplan-Meier graph. Both things can be
controlled with this function. However, it mainly serves
plot.prodlim
.
backGround(
xlim,
ylim,
bg = "white",
fg = "gray77",
horizontal = NULL,
vertical = NULL,
border = "black"
)
Limits for the xaxis, defaults to par("usr")[1:2].
Limits for the yaxis, defaults to par("usr")[3:4].
Background color. Can be multiple colors which are then switched at each horizontal line.
Grid line color.
Numerical values at which horizontal grid lines are plotted.
Numerical values at which vertical grid lines are plotted.
The color of the border around the background.