Re: [R] y-axis-problem (barplots)

2012-05-07 Thread E Atescelik
And if the y-axis starts with 0: Instead of ylim=c(1,2), you take ylim=c(0,2). Thus barplot(x[,1], ylim=c(0,2)) Hopefully it is now correct. Kind regards,Esra Atescelik > Date: Mon, 7 May 2012 09:55:06 +0200 > From: stude...@gmail.com > To: r-help@r-project.org > Subject: [R] y-

Re: [R] y-axis-problem (barplots)

2012-05-07 Thread Berend Hasselman
On 07-05-2012, at 09:55, David Studer wrote: > Hi everybody! > > I would like to plot a barplot, but, unfortunately, when I change the > y-axis limits > the bars do not start at 0 any more but get negative: > > # > # Data (just a short example): >

[R] y-axis-problem (barplots)

2012-05-07 Thread David Studer
Hi everybody! I would like to plot a barplot, but, unfortunately, when I change the y-axis limits the bars do not start at 0 any more but get negative: # # Data (just a short example): a<-c(1.61, 2.1) b<-c(1.5, 1.9) c<-c(1.85, 2.2) d<-c(1.63, 2.3)