I'm trying to create a plot that looks like the image below, but I'm really struggling when it comes to the multiple x-axis. Any help would be appreciated. Sample code for the figure provided.
Sample Figure:
df <- data.frame(Time=c(" ","Phase 1","Phase 1","Phase 1","Phase 1"," ",
" ","Phase 2","Phase 2","Phase 2","Phase 2"," "),
Condition=c("BO", "BO", "BO", "BO","BO","BO",
"OB","OB","OB","OB","OB","OB"),
Phase=c("Baseline", "T1", "T2", "T1", "T2", "Follow-Up"),
Change=c(0,-2.84, -5.02, -6.81,-7.41,-6.80, 0, -3.35,-6.92,-7.05,-6.59,-6.41))
Tried following the code available here. But didn't get very far.