Hi,

I would like to put the sample number beside each lable in a boxplot.
How do I do this? Essentially, I need to count the sample size for each
factor, see below:
Thanks

boxplot(DATA$K_Merge~factor(DATA$UnitName_1),axes=FALSE,col=colours)
title(main=list("Tukey Boxplot by Geology:\n K(%)",cex=cexlb))
axis(1, 1:21, labels=FALSE, las=2)
text(seq(1, 21, by=1), par("usr")[3], labels =
levels(factor(DATA$UnitName_1)), srt = 45,  adj = c(1.03,1.03), xpd = TRUE,
cex=1.8)
axis(2, seq(-1,5, 1), seq(-1, 5, 1))


-- 
Shane

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to