#Simulated clinical data
clinical_df <- clinical_data(visits = 10)
# Boxplot of biomarker by treatment
plot_box(clinical_df, x = "treatment", y = "biomarker", group = "treatment")
# Barplot of bimarker by study visit and treatment
plot_box(clinical_df, x = "visit", y = "biomarker", group = "treatment")
Run the code above in your browser using DataLab