[R] How to add values on bar of groouped bar plot using mtext?
Manish Gupta
mandecent.gupta at gmail.com
Sat Aug 11 04:55:16 CEST 2012
How to write values on bars using mtext?
Grouped Bar Plot
counts <- table(mtcars$vs, mtcars$gear) barplot(counts, main="Car
Distribution by Gears and VS",xlab="Number of Gears",
col=c("darkblue","red"),legend = rownames(counts), beside=TRUE, horiz=TRUE)
mtext(counts ) # But poistion is not at each bar.
How can i put corresponsing values on each bars of plot?
Regards
--
View this message in context: http://r.789695.n4.nabble.com/How-to-add-values-on-bar-of-groouped-bar-plot-using-mtext-tp4640014.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list