boxes.MS
and boxes.Lexis
When drawing boxes describing a multistate model a legend
explaining the numbers in the plot is required. legendbox
does
this.
legendbox(x, y,
state = "State",
py = "Person-time",
begin = "no. begin",
end = "no. end",
trans = "Transitions",
rates = "\n(Rate)",
font = 1,
right = !left,
left = !right,
...)
None.
x-coordinate of the center of the box.
y-coordinate of the center of the box.
Text describing the state
Text describing the risk time
Text describing the no. persons starting FU in state
Text describing the no. persons ending FU in state
Text describing the no. of transitions
Text describing the rates
Font to use for the text
Should a text describing arrow texts be on the r.h.s. of the box? Defaults to TRUE.
Should a text describing arrow texts be on the l.h.s. of the box?
Arguments passed on to tbox
Bendix Carstensen, http://bendixcarstensen.com
The function is called for its side effect of adding an
explanatory box to the plot. If right
is true, an explanation
of events and rates are added to the right of the box. Similarly for
left
. It is admissible that left == right
.
boxes.Lexis