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
>
> 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
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
.
> 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
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
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
6 matches
Mail list logo