adding mean to boxplot
On Thu, 22 Jan 2004 19:11:08 +0100
Johannes Ullrich <ullrichj at mailer.uni-marburg.de> wrote:
I am a new and unexperienced user of R and got so far as to know how to produce boxplots. I have no experience of messing with function code, so presently I do not know how to create a boxplot with group means instead of group medians. If somebody could help me either replace the median with the mean or superimpose the mean onto the existing boxplot, it would be appreciated.
You might want to also consider extended box plots or box-percentile plots
to show more information, plus the mean. See the panel.bpplot function in
the Hmisc package. There are many examples in the help file.
---
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University