Re: [R] refering to the 'boundaries' of a graph

2009-12-28 Thread John Kane
/09, Dean1 wrote: > From: Dean1 > Subject: [R] refering to the 'boundaries' of a graph > To: r-help@r-project.org > Received: Monday, December 28, 2009, 8:55 AM > > Please see this code for a demonstration of my problem... > > xlim <- c(-1,5) > plot(1:4,

Re: [R] refering to the 'boundaries' of a graph

2009-12-28 Thread Henrique Dallazuanna
Try this: par("usr") give the boundaries. abline(v = par("usr")[1], col = "red", lwd = 2) abline(v = par("usr")[2], col = "red", lwd = 2) On Mon, Dec 28, 2009 at 11:55 AM, Dean1 wrote: > > Please see this code for a demonstration of my problem... > > xlim <- c(-1,5) > plot(1:4, xlim=xlim) > abl

[R] refering to the 'boundaries' of a graph

2009-12-28 Thread Dean1
Please see this code for a demonstration of my problem... xlim <- c(-1,5) plot(1:4, xlim=xlim) abline(v=xlim[1]) abline(v=xlim[2]) When I refer to xlim, it is not referring to the boundaries of the graphical region, it refers to the maximum and minimum xticks. My question is how can I refer to