Re: [R] Controlling the extent of ablines on plot

2011-05-03 Thread Duncan Murdoch
On 03/05/2011 1:26 PM, Ryan Utz wrote: Well... that could work. Problem is in the actual graphs I'm making, there are to be>30 lines per graph (as many as 60 in some cases). Any way I could use the lines command without having to write out 60 lines of code per figure? That's why I like ablines; y

Re: [R] Controlling the extent of ablines on plot

2011-05-03 Thread Joshua Wiley
On Tue, May 3, 2011 at 10:40 AM, Joshua Wiley wrote: > The issue is the plotting region is slightly padded.  The easiest > option, I think, would be to clip() it.  I have a general sense that > one of the par() options would let you adjust the padding to 0, but I > could just be imagining that (an

Re: [R] Controlling the extent of ablines on plot

2011-05-03 Thread Joshua Wiley
Hi Ryan, The issue is the plotting region is slightly padded. The easiest option, I think, would be to clip() it. I have a general sense that one of the par() options would let you adjust the padding to 0, but I could just be imagining that (anyone else??). Anyway, here are some options: ### p

Re: [R] Controlling the extent of ablines on plot

2011-05-03 Thread Greg Snow
Check your par() settings, specifically "xpd". For more control see ?clip. If that does not do enough for you then use lines or segments for complete control. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Mes

Re: [R] Controlling the extent of ablines on plot

2011-05-03 Thread Ryan Utz
Well... that could work. Problem is in the actual graphs I'm making, there are to be >30 lines per graph (as many as 60 in some cases). Any way I could use the lines command without having to write out 60 lines of code per figure? That's why I like ablines; you just have to specify a single value a

Re: [R] Controlling the extent of ablines on plot

2011-05-03 Thread Jerome Asselin
On Tue, 2011-05-03 at 10:36 -0600, Ryan Utz wrote: > Hi all, > > I'm attempting to make a quite-specific plot where the axes cross at the > origin and with gridlines for guidance. I've been using ablines to create > the reference lines because I want a lot of control as to where they are > placed