View source: R/plot_missing_data.R
Calculate how much data is missing for each patient, visit and test battery.
1 2 3 4 5 6 7 8 9 10 | plot_missing_data(
missing_data_percentages,
id_var,
site_var,
patient_annotations,
annotation_threshold = -1,
width.expansion = 15,
first_column.width = unit(4, "cm"),
panel_sizes = c(1, 1, 1)
)
|
missing_data_percentages |
The tibble generated by calculate_missing_data. |
id_var |
A quosure representing the column that contains the patient label. |
site_var |
A quosure representing the column that contains the site name for that patient. |
patient_annotations |
The tibble representing attendance at visits (containing the patient label, hospital, visit annotation and all dates). |
annotation_threshold |
The threshold of percentage missing data (expressed as a number between 0 and 100) for annotation. The default is -1 (therefore showing all percentages). |
width.expansion |
A coefficient to control the width of the panels for each site |
first_column.width |
A measurement (using unit()) for the width of the row labels |
panel_sizes |
The relative sizes (heights) of the two panels |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.