A figure that shows the states and the possible transitions between them.
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
)
An object of class mixpch
, resembling the survival function in treatment group 0
An object of class mixpch
, resembling the survival function in treatment group 1
A character vector with the same length as A$p. It indicates names for the subgroups in A
A character vector with the same length as B$p. It indicates names for the subgroups in B
Which treatment arm should be shown? One of "Both", "Experimental", "Control".
A character vector of length 2 indicating the treatment labels.
Either a vector of length two with colors for A and B, or "default".
A logical indicating whether the rate should be shown in the diagram