Skip to content
Back to formatted view

Raw Message

Message-ID: <0A9873FD-9B48-4DA2-98C7-0518B11DFAF6@comcast.net>
Date: 2012-08-11T05:26:42Z
From: David Winsemius
Subject: How to add values on bar of grouped bar plot using mtext?
In-Reply-To: <1344653727348-4640015.post@n4.nabble.com>

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,  
> horiz=TRUE)
>
> mtext(counts ) # But poistion is not at each bar.
>
> How can i put corresponsing values on each bars of  plot?
>
Please do not post duplicates
Please do not crosspost to SO and rhelp.
Please do read the Posting Guide.

>
> --
>
> Sent from the R help mailing list archive at Nabble.com.
>
-- 

David Winsemius, MD
Alameda, CA, USA