[R] indicating significant differences in boxplots

From: Sebastian Merz <sebastian.merz_at_web.de>
Date: Mon, 07 Jul 2008 11:19:20 +0200


Hi all!

Writing a paper using a lot of boxplots I was asked to mark the significant differences between plotted groups using "stars on top".

These stars are found freqeuntly in medical papers and printed above boxplots when there is a significant difference (usually using a bar to indicate which groups are meant if there are more then two in a plot).

I was able to calculate whatever test, check the significance and depending on it to put a star (written with text-function) between two groups in a boxplot. But I was not
able to make the text between two groups apear above the actual plotting region nor to draw a simple line, indicating which plots are meant. Also this solution seems to more of a hack then actual programming.

Is there a better way to solve this issue? Any ideas where to look?

I hope I haven been clear and thank you for your effort, S. Merz



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 07 Jul 2008 - 09:24:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Jul 2008 - 21:31:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive