[R] adding mean to boxplot
Frank E Harrell Jr
feh3k at spamcop.net
Thu Jan 22 19:58:36 CET 2004
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
More information about the R-help
mailing list