R - Lattice xyplot - How do you add error bars to groups and summary lines?
问题 I'm posting this question because the very similar question here has not been answered until now. I have been asked to plot the mean +/- SEM of my whole cohort of patients over the xyplot() that depicts the values of all patients. The data used represents intraoperative cardiovascular findings from patients undergoing surgery. This is my data.frame called df dput(df) structure(list(Name = structure(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 5L, 5L, 5L, 5L, 5L, 5L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 1L, 1L, 1L,