# NOT RUN {
## Create eDISH figure customized to user data
eDISH(data=adlbc,
id_col = "USUBJID",
value_col = "AVAL",
measure_col = "PARAM",
visit_col = "VISIT",
visitn_col = "VISITNUM",
studyday_col = "ADY",
normal_col_low = "A1LO",
normal_col_high = "A1HI",
measure_values = list(ALT = "Alanine Aminotransferase (U/L)",
AST = "Aspartate Aminotransferase (U/L)",
TB = "Bilirubin (umol/L)",
ALP = "Alkaline Phosphatase (U/L)"))
## Create eDISH figure using a premade settings list
group_cols_list <- list(
list(value_col = "TRTP", label = "Treatment"),
list(value_col = "SEX", label = "Sex"),
list(value_col = "AGEGR1", label = "Age group")
)
filters_list <- list(
list(value_col = "TRTA", label = "Treatment"),
list(value_col = "SEX", label = "Sex"),
list(value_col = "RACE", label = "RACE"),
list(value_col = "AGEGR1", label = "Age group")
)
settingsl <- list(id_col = "USUBJID",
value_col = "AVAL",
measure_col = "PARAM",
visit_col = "VISIT",
visitn_col = "VISITNUM",
studyday_col = "ADY",
normal_col_low = "A1LO",
normal_col_high = "A1HI",
group_cols = group_cols_list,
filters = filters_list,
measure_values = list(ALT = "Alanine Aminotransferase (U/L)",
AST = "Aspartate Aminotransferase (U/L)",
TB = "Bilirubin (umol/L)",
ALP = "Alkaline Phosphatase (U/L)"))
eDISH(data=adlbc, settings = settingsl)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab