[R] Percent (%) format in barplot

Neuro LeSuperHéros neuro3000 at hotmail.com
Fri May 6 17:16:32 CEST 2005


Percent format in barplot

Hello,

In a barplot, I need:

1-The xaxis labels to be in percent format with one decimal. Example: 1.5%

barplot(height, horiz = TRUE, names=as.character(data$name))

2- The data labels to be in the same format (percent format with one 
decimal)

text(x,y,as.character(x),pos=4)

How do I do that?

Thanks




More information about the R-help mailing list