View source: R/plot_randomization.R
| plot_randomization | R Documentation |
Creates a bar chart showing the number of subjects allocated to each treatment group.
plot_randomization(
schedule,
group_col = "Group",
fill = "#2C7FB8",
title = "Treatment Allocation"
)
schedule |
A data frame produced by ExpDesignR. |
group_col |
Character. Name of the treatment column. |
fill |
Character. Fill colour. |
title |
Character. Plot title. |
A ggplot object.
sch <- simple_randomization(
n = 40,
groups = c("Control","Treatment"),
seed = 123
)
plot_randomization(sch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.