Re: [R] changing format of y-axis (barplot)

2008-02-25 Thread Benilton Carvalho
bp = barplot(df$y,names.arg=NULL, yaxt="n", ylim=c(0, 110)) text(bp, df$y+15000, paste("Class", 1:6)) axis(2, df$y) b On Feb 26, 2008, at 1:41 AM, milton ruser wrote: Dear all, I have some data.frame and I would like (1) change the format of y=axis to escape of scientific format (like 1

[R] changing format of y-axis (barplot)

2008-02-25 Thread milton ruser
Dear all, I have some data.frame and I would like (1) change the format of y=axis to escape of scientific format (like 1e+05...) and (2) label the value or other variable on the top of the bar. df<-data.frame(x=1:6,y=c(100,500,1000,25000,50,100)) barplot(df$y,names.arg=df$x) Thanks in ad