johnhj wrote:
Hii,

Can anybody help me to put a text under the barplots. I will describe the
percental between six grouped barplots. I tried to do it with mtext but
without success.

...
I tired to do it with mtext(side=1,at=x, text =c("Mean", "","","","","rere"), col = "red"),
line = 1, cex = 0.75) but without success, I get this example from a R
tutorial...
Hi John,
The horizontal bar positions are returned invisibly by the barplot function, so:

xpos<-barplot(...)
mtext(side=1,at=xpos,...)

should do what you want.

Jim

______________________________________________
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