I would like to generate a spaghetti plot for individuals on follow-up (having a continuous outcome) and thereafter overlay an overall line of median (with quartile ranges) providing a summary of the outcome measures at each visit. I would also like to join the median values from baseline to the last visit (have 6 visits).
I can do the spaghetti plot fine without difficulty but I was wondering if someone can point me to a similar example.
You can add (overlay) multiple graphs on the same plot, so its just a matter of adding the data you want to the dataset, and adding additional plot statements. Assume that your data contains median_base median_visit in your data, then you could just add: