Re: [R] barplot with anchored bars

2008-08-22 Thread Jim Lemon
On Thu, 2008-08-21 at 15:47 -0300, Paulo Barata wrote: > Dear R list members, > > How to produce barplots anchored to the x-axis (not floating > above the x-axis) with a box around? > > With both following codes, the lower horizontal line of the > box is below the y = 0 line: > > # first code >

Re: [R] barplot with anchored bars

2008-08-22 Thread Uwe Ligges
Paulo Barata wrote: Dear R list members, How to produce barplots anchored to the x-axis (not floating above the x-axis) with a box around? With both following codes, the lower horizontal line of the box is below the y = 0 line: # first code x <- c(1,2,3,4) barplot(x,yaxs='i') box() # secon

[R] barplot with anchored bars

2008-08-21 Thread Paulo Barata
Dear R list members, How to produce barplots anchored to the x-axis (not floating above the x-axis) with a box around? With both following codes, the lower horizontal line of the box is below the y = 0 line: # first code x <- c(1,2,3,4) barplot(x,yaxs='i') box() # second code x <- c(1,2,3,4)