View source: R/03_lab_summary.R
lab_summary | R Documentation |
This functions creates a barplot for each treatment that shows the percentage subjects below the lower limit of normal (LLN) and above the upper limit of normal (ULN)
lab_summary(
adlb,
kind = "abnormal",
param_filter,
title = NULL,
shift_breaks_vec = NULL,
selected_visit = c("Baseline", "Week 2", "Week 4", "Week 6", "Week 8",
"End of Treatment")
)
adlb |
Laboratory dataset |
kind |
The type of visualization. Options are 'abnormal', 'box', and 'shift'. Default is 'abnormal'. |
param_filter |
Character. The filtration applies on 'PARAM' variable. |
title |
the main title of the plot. |
shift_breaks_vec |
the break x & y axis for shift plot. |
selected_visit |
Vector of characters. The filtration on 'AVISIT' variable. |
A ggplot object
## Not run:
load("data/adlbc.rda")
lab_summary(adlb = adlbc,
kind = "abnormal",
param_filter = "Cholesterol (mmol/L)",
selected_visit = c("Baseline", "Week 2", "Week 4", "Week 6", "Week 8", "End of Treatment")
)
lab_summary(adlb = adlbc,
kind = "box",
param_filter = "Cholesterol (mmol/L)",
selected_visit = c("Baseline", "Week 2", "Week 4", "Week 6", "Week 8", "End of Treatment")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.