plot_diagram {nph} | R Documentation |
Draw a state space figure
Description
A figure that shows the states and the possible transitions between them.
Usage
plot_diagram(
A,
B,
A_subgr_labels = "",
B_subgr_labels = "",
which = c("Both", "Experimental", "Control"),
treatment_labels = c("Experimental", "Control"),
colors = "default",
show.rate = TRUE
)
Arguments
A |
An object of class |
B |
An object of class |
A_subgr_labels |
A character vector with the same length as A$p. It indicates names for the subgroups in A |
B_subgr_labels |
A character vector with the same length as B$p. It indicates names for the subgroups in B |
which |
Which treatment arm should be shown? One of "Both", "Experimental", "Control". |
treatment_labels |
A character vector of length 2 indicating the treatment labels. |
colors |
Either a vector of length two with colors for A and B, or "default". |
show.rate |
A logical indicating whether the rate should be shown in the diagram |
[Package nph version 2.1 Index]