Re: [R] Alignment of lines within barplot bars

2011-04-18 Thread snowboarder101
Great, that seems to do it. I had found another post about the twoord.plot function, but it seems that one comes with its own set of difficulties. Thanks for the help! -- View this message in context: http://r.789695.n4.nabble.com/Alignment-of-lines-within-barplot-bars-tp2533115p3458555.html Sen

Re: [R] Alignment of lines within barplot bars

2011-04-18 Thread Greg Snow
...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of snowboarder101 > Sent: Friday, April 08, 2011 2:26 PM > To: r-help@r-project.org > Subject: Re: [R] Alignment of lines within barplot bars >

Re: [R] Alignment of lines within barplot bars

2011-04-08 Thread snowboarder101
Thanks for the reply. I looked at this before as I saw you had posted this, but this either doesn't work in my situation, or I am using it wrong. Take the example in the function: tmp <- barplot(1:4) updateusr(tmp[1:2], 0:1, 1:2, 0:1) lines(1:4, c(1,3,2,2), lwd=3, type='b',col='red') But I want

Re: [R] Alignment of lines within barplot bars

2011-04-08 Thread Greg Snow
Behalf Of snowboarder101 > Sent: Thursday, April 07, 2011 12:38 PM > To: r-help@r-project.org > Subject: Re: [R] Alignment of lines within barplot bars > > Hi, > > I am dealing with a similar issue, I am trying to use a barplot in > conjunction with some points plotted

Re: [R] Alignment of lines within barplot bars

2011-04-07 Thread snowboarder101
Hi, I am dealing with a similar issue, I am trying to use a barplot in conjunction with some points plotted and want to line the two up. This all works fine, but I am dealing with the additional complication that I have two y-ranges. The barplot is based on one range, while the points are based on

Re: [R] Alignment of lines within barplot bars

2010-09-10 Thread Jim Lemon
On 09/10/2010 01:35 AM, Steve Murray wrote: Dear all, I have a barplot upon which I hope to superimpose horizontal lines extending across the width of each bar. I am able to partly achieve this through the following set of commands: positions<- barplot(bar_values, col="grey") par(new=TRUE) p

Re: [R] Alignment of lines within barplot bars

2010-09-09 Thread John Kane
: > From: Steve Murray > Subject: RE: [R] Alignment of lines within barplot bars > To: jrkrid...@yahoo.ca, r-help@r-project.org > Received: Thursday, September 9, 2010, 1:19 PM > > Thanks for the reply. > > However this isn't quite what I want. I'm looking to >

Re: [R] Alignment of lines within barplot bars

2010-09-09 Thread John Kane
Like this? x <- 4:7 barplot(x, density=10, angle=180) --- On Thu, 9/9/10, Steve Murray wrote: > From: Steve Murray > Subject: [R] Alignment of lines within barplot bars > To: r-help@r-project.org > Received: Thursday, September 9, 2010, 11:35 AM > > Dear all, >

[R] Alignment of lines within barplot bars

2010-09-09 Thread Steve Murray
Dear all, I have a barplot upon which I hope to superimpose horizontal lines extending across the width of each bar. I am able to partly achieve this through the following set of commands: positions <- barplot(bar_values, col="grey") par(new=TRUE) plot(positions, horiz_values, col="red", pch="