# Simulated clinical data
clinical_df <- clinical_data(arms = c("A","B","C"), visits = 10)
# Line plot with mean and standard error by treatment
plot_line(clinical_df, x = "visit", y = "biomarker",
group = "treatment", stat = "mean", error = "se")
# Faceted line plots with median and 95% CI
plot_line(clinical_df, x = "visit", y = "biomarker", group = "treatment",
facet = "sex", stat = "median", error = "ci", points = FALSE)
Run the code above in your browser using DataLab