[R] indicating significant differences in boxplots
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@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.
[R] boxplot changes fontsize of labels
Hi all! So far I learned some R but finilizing my plots so they look publishable seems not to be possible. I set up some boxplots. Everything works well but when I put more then two of them in one plot the labels of the axes appear smaller than the normal font size. x - rnorm(30) y - rnorm(30) par(mfrow=c(1,4)) boxplot(x,y, names=c(horray, hurra)) mtext(Jubel, side=1, line=2) In case I take one or two boxplots this does not happen: par(mfrow=c(1,2)) boxplot(x,y, names=c(horray, hurra)) mtext(Jubel, side=1, line=2) The cex.axis seems not to be changed, as setting it to 1.0 doesn't change the behaviour. If cex.axis=1.3 in the first example the font size used by boxplot and by mtext is about the same. But as I use a function to draw quite some of these plots this hack is not a proper solution. I couldn't find anything about this behaviour in the documention or the inet. Can anybody explain? All hints are appriciated. Thanks, S. Merz __ R-help@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.