View source: R/additional_functions_1-1.R
plot_diagram | R Documentation |
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 )
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.