Re: [R] adding labels above bars in a barplot

2010-09-10 Thread Antonio Olinto
Thanks Greg, Dennis and John for the attention and recommendations. I did the job with par(mar=c(12,6,3,2),cex.axis=1.2,cex.lab=1.4) bp<-barplot(t(as.matrix(dat.bar)),ylim=c(0,max(dat.data[,2]*1.1)),las=2,ylab="Y label text",col="orange") box() text(bp,dat.bar[,1],dat.data[,3],col="blue",pos=3

Re: [R] adding labels above bars in a barplot

2010-09-10 Thread Dennis Murphy
> > At least the OP did not ask for error bars as well. :) > Don't get me started on that subject...kaboom! [That one's for Frank Harrell] :) Dennis > > --- On Fri, 9/10/10, Dennis Murphy wrote: > > > From: Dennis Murphy > > Subject: Re: [R] adding la

Re: [R] adding labels above bars in a barplot

2010-09-10 Thread John Kane
Are you trying to say that you don't really like barplots? At least the OP did not ask for error bars as well. :) --- On Fri, 9/10/10, Dennis Murphy wrote: > From: Dennis Murphy > Subject: Re: [R] adding labels above bars in a barplot > To: "Antonio Olinto" &g

Re: [R] adding labels above bars in a barplot

2010-09-10 Thread Dennis Murphy
. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > > project.org] On Behalf Of Antonio Olinto > > Sent: Friday, September 10, 20

Re: [R] adding labels above bars in a barplot

2010-09-10 Thread Greg Snow
R-help > Subject: [R] adding labels above bars in a barplot > > Hello, > > I want to make a general routine to draw barplots with numbers plotted > above each bar. See the example below. > > I could not place the numbers on the middle of each bar because I > could not c

[R] adding labels above bars in a barplot

2010-09-10 Thread Antonio Olinto
Hello, I want to make a general routine to draw barplots with numbers plotted above each bar. See the example below. I could not place the numbers on the middle of each bar because I could not calculate the right position of each x-axis tick. axTicks(1) indicated a unitary step, but it do