> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Aimin Yan
> Sent: Thursday, March 13, 2008 11:10 AM
> To: r-help@r-project.org
> Subject: [R] label each bar by value
>
> I want to label each bar on the top of bars when using barplot.
?text
tmp <- c(34,22,77)
tmp.labels <- c("cat", "dog", "sheep")
tmp2 <- barplot(tmp, ylim=c(0, max(tmp)+10))
text(1:3, tmp+2 , labels=tmp.labels)
--- Aimin Yan <[EMAIL PROTECTED]> wrote:
> I want to label each bar on the top of bars when
> using barplot.
>
> anyone know how to do this?
>
> th
I want to label each bar on the top of bars when using barplot.
anyone know how to do this?
thanks
__
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
3 matches
Mail list logo