legendbox | R Documentation |
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,
...)
x |
x-coordinate of the center of the box. |
y |
y-coordinate of the center of the box. |
state |
Text describing the state |
py |
Text describing the risk time |
begin |
Text describing the no. persons starting FU in state |
end |
Text describing the no. persons ending FU in state |
trans |
Text describing the no. of transitions |
rates |
Text describing the rates |
font |
Font to use for the text |
right |
Should a text describing arrow texts be on the r.h.s. of the box? Defaults to TRUE. |
left |
Should a text describing arrow texts be on the l.h.s. of the box? |
... |
Arguments passed on to |
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
.
None.
Bendix Carstensen, http://bendixcarstensen.com
boxes.Lexis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.