Re: [R] How to add values on bar of grouped bar plot using mtext?

2012-08-10 Thread arun
- Original Message - From: Manish Gupta To: r-help@r-project.org Cc: Sent: Friday, August 10, 2012 10:55 PM Subject: [R] How to add values on bar of grouped bar plot using mtext? How to write values on bars using mtext? Grouped Bar Plot counts <- table(mtcars$vs, mtcars$gear) barplot(

Re: [R] How to add values on bar of grouped bar plot using mtext?

2012-08-10 Thread David Winsemius
On Aug 10, 2012, at 7:55 PM, Manish Gupta wrote: 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, h

[R] How to add values on bar of grouped bar plot using mtext?

2012-08-10 Thread Manish Gupta
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 eac