Description Usage Arguments Value
View source: R/AttritionDiagramPlp.R
drawAttritionDiagramPlp
draws the attition diagram, showing how many people were excluded from
the study population, and for what reasons.
1 2 3 4 5 6 | drawAttritionDiagramPlp(
attrition,
targetLabel = "Target Population",
outcomeLabel = "Outcome Count",
fileName = NULL
)
|
attrition |
The table of attrition details return from the population attr(popualtion, 'metaData')$attrition |
targetLabel |
A label to us for the treated cohort. |
outcomeLabel |
A label to us for the comparator cohort. |
fileName |
Name of the file where the plot should be saved, for example 'plot.png'.
See the function |
A ggplot object. Use the ggsave
function to save to file in a different
format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.